Skip to content

Commit

Permalink
changed pop to get
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-the-shark committed Jan 30, 2021
1 parent 19f0194 commit 136cebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mapbox_location_field/widgets.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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',
Expand Down

0 comments on commit 136cebd

Please sign in to comment.