diff --git a/mapbox_location_field/widgets.py b/mapbox_location_field/widgets.py index a2d6599..6c0e678 100644 --- a/mapbox_location_field/widgets.py +++ b/mapbox_location_field/widgets.py @@ -22,8 +22,8 @@ def __init__(self, attrs=None, map_attrs=None): if map_attrs is None: map_attrs = {} self.map_attrs = map_attrs - self.readonly = self.map_attrs.pop("readonly", True) - self.placeholder = self.map_attrs.pop("placeholder", "Pick a location on map below") + self.readonly = self.map_attrs.get("readonly", True) + self.placeholder = self.map_attrs.get("placeholder", "Pick a location on map below") self.center_point = False super().__init__(attrs) diff --git a/setup.py b/setup.py index eb61eb3..f5a7dd5 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='django-mapbox-location-field', - version='1.7.0', + version='1.7.1', packages=["mapbox_location_field"], include_package_data=True, license='MIT License',