1 from django.contrib.gis import admin
2 from madrona.studyregion.models import StudyRegion
3
4
6 list_display = ('name', 'active', 'creation_date', 'modification_date', )
7 ordering = ('-active', '-creation_date', )
8 fieldsets = (
9 (None, {
10 'fields': ('name', 'geometry')
11 }),
12 ('LookAt options', {
13 'fields': ('lookAt_Lat', 'lookAt_Lon', 'lookAt_Range', 'lookAt_Tilt', 'lookAt_Heading', ),
14 'description': 'Change these if you want to manually define the default extent of the map.',
15 }),
16 ('Advanced options', {
17 'classes': ('collapse',),
18 'fields': ('active',)
19 }),
20 )
21
22 admin.site.register(StudyRegion, StudyRegionAdmin)
23