summaryrefslogtreecommitdiff
path: root/django/contrib/gis/admin/widgets.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-03-20 09:42:59 -0400
committerTim Graham <timograham@gmail.com>2017-03-21 10:38:15 -0400
commit2bd152b46f608933a8c4c6a3c2689781fc58f4fd (patch)
tree8f1e7dff96b13709e1642b7a56298ec0d9b1adb9 /django/contrib/gis/admin/widgets.py
parent524f1e7051a36a633abef756d3284886f22c2340 (diff)
[1.11.x] Refs #27919 -- Changed Widget.get_context() attrs kwarg to an arg.
Backport of 075e93c16a82ba7869a0b2d572e99fdbd0724042 and 93d07701045c242f81396016ab4ae15ba63a55d9 from master
Diffstat (limited to 'django/contrib/gis/admin/widgets.py')
-rw-r--r--django/contrib/gis/admin/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/admin/widgets.py b/django/contrib/gis/admin/widgets.py
index 014b3ad818..2d20ea2132 100644
--- a/django/contrib/gis/admin/widgets.py
+++ b/django/contrib/gis/admin/widgets.py
@@ -15,7 +15,7 @@ class OpenLayersWidget(Textarea):
"""
Renders an OpenLayers map using the WKT of the geometry.
"""
- def get_context(self, name, value, attrs=None):
+ def get_context(self, name, value, attrs):
# Update the template parameters with any attributes passed in.
if attrs:
self.params.update(attrs)