Improved location widget
This commit is contained in:
@@ -3,12 +3,10 @@ from location_field.widgets import LocationWidget
|
||||
|
||||
|
||||
class PlainLocationField(fields.CharField):
|
||||
def __init__(self, based_fields=None, zoom=None, default=None,
|
||||
*args, **kwargs):
|
||||
def __init__(self, based_field=None, zoom=None, default=None, *args, **kwargs):
|
||||
|
||||
kwargs['initial'] = default
|
||||
|
||||
self.widget = LocationWidget(based_fields=based_fields, zoom=zoom,
|
||||
**kwargs)
|
||||
self.widget = LocationWidget(based_field=based_field, zoom=zoom, **kwargs)
|
||||
|
||||
dwargs = {
|
||||
'required': True,
|
||||
|
||||
Reference in New Issue
Block a user