Commits

jbronn  committed 68ed098

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

  • Participants
  • Parent commits 4495a99

Comments (0)

Files changed (1)

File 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)