diff options
| author | Tim Graham <timograham@gmail.com> | 2017-03-20 09:42:59 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-21 10:38:15 -0400 |
| commit | 2bd152b46f608933a8c4c6a3c2689781fc58f4fd (patch) | |
| tree | 8f1e7dff96b13709e1642b7a56298ec0d9b1adb9 /django/contrib/gis/admin/widgets.py | |
| parent | 524f1e7051a36a633abef756d3284886f22c2340 (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.py | 2 |
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) |
