admin.txt 593 B

12345678910111213141516171819202122
  1. ======================
  2. GeoDjango's admin site
  3. ======================
  4. .. module:: django.contrib.gis.admin
  5. :synopsis: GeoDjango's extensions to the admin site.
  6. ``GISModelAdmin``
  7. =================
  8. .. class:: GISModelAdmin
  9. .. attribute:: gis_widget
  10. The widget class to be used for
  11. :class:`~django.contrib.gis.db.models.GeometryField`. Defaults to
  12. :class:`~django.contrib.gis.forms.widgets.OSMWidget`.
  13. .. attribute:: gis_widget_kwargs
  14. The keyword arguments that would be passed to the :attr:`gis_widget`.
  15. Defaults to an empty dictionary.