Commits

Anonymous committed 68ed098

Fixed geographic admin to be compatible with `ModelAdmin.formfield_for_dbfield` changes in r9760.

Comments (0)

Files changed (1)

django/contrib/gis/admin/options.py

         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)