diff options
| author | Justin Bronn <jbronn@gmail.com> | 2009-01-16 20:05:39 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2009-01-16 20:05:39 +0000 |
| commit | 547649f9627c9414aeda29600348ba3430644075 (patch) | |
| tree | 48c2c482bda561766beed4ec1aaa7ec148606a5c | |
| parent | 1c1425130d04d0045b299beffce3363b819cf393 (diff) | |
Fixed geographic admin to be compatible with `ModelAdmin.formfield_for_dbfield` changes in r9760.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/gis/admin/options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/gis/admin/options.py b/django/contrib/gis/admin/options.py index 26d60e55c8..7ec2c250ee 100644 --- a/django/contrib/gis/admin/options.py +++ b/django/contrib/gis/admin/options.py @@ -53,6 +53,7 @@ class GeoModelAdmin(ModelAdmin): for viewing/editing GeometryFields. """ if isinstance(db_field, models.GeometryField): + request = kwargs.pop('request', None) # Setting the widget with the newly defined widget. kwargs['widget'] = self.get_map_widget(db_field) return db_field.formfield(**kwargs) |
