coalition.regions.admin

Classes

RegionAdmin

Admin interface for Region model

Module Contents

class coalition.regions.admin.RegionAdmin(model, admin_site)[source]

Bases: django.contrib.admin.ModelAdmin

Admin interface for Region model

list_display = ('name', 'label', 'abbrev', 'type', 'geoid', 'parent', 'has_geometry')[source]
list_filter = ('type', 'parent')[source]
search_fields = ('name', 'label', 'abbrev', 'geoid')[source]
readonly_fields = ('geoid', 'coords', 'geom', 'geojson')[source]
fieldsets[source]
has_geometry(obj: coalition.regions.models.Region) bool[source]

Display whether the region has geometric data

get_queryset(request: django.http.HttpRequest) QuerySet[Region][source]

Order by type and then name