Kaydet (Commit) 547649f9 authored tarafından Justin Bronn's avatar Justin Bronn

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
üst 1c142513
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment