coalition.regions.admin ======================= .. py:module:: coalition.regions.admin Classes ------- .. autoapisummary:: coalition.regions.admin.RegionAdmin Module Contents --------------- .. py:class:: RegionAdmin(model, admin_site) Bases: :py:obj:`django.contrib.admin.ModelAdmin` Admin interface for Region model .. py:attribute:: list_display :value: ('name', 'label', 'abbrev', 'type', 'geoid', 'parent', 'has_geometry') .. py:attribute:: list_filter :value: ('type', 'parent') .. py:attribute:: search_fields :value: ('name', 'label', 'abbrev', 'geoid') .. py:attribute:: readonly_fields :value: ('geoid', 'coords', 'geom', 'geojson') .. py:attribute:: fieldsets .. py:method:: has_geometry(obj: coalition.regions.models.Region) -> bool Display whether the region has geometric data .. py:method:: get_queryset(request: django.http.HttpRequest) -> QuerySet[Region] Order by type and then name