Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

from django.contrib.gis import admin 

from madrona.studyregion.models import StudyRegion 

 

 

class StudyRegionAdmin(admin.GeoModelAdmin): 

    list_display = ('name', 'active', 'creation_date', 'modification_date', ) 

    ordering = ('-active', '-creation_date', ) 

    fieldsets = ( 

        (None, { 

            'fields': ('name', 'geometry') 

        }), 

        ('LookAt options', { 

            'fields': ('lookAt_Lat', 'lookAt_Lon', 'lookAt_Range', 'lookAt_Tilt', 'lookAt_Heading', ), 

            'description': 'Change these if you want to manually define the default extent of the map.', 

        }), 

        ('Advanced options', { 

            'classes': ('collapse',), 

            'fields': ('active',) 

        }), 

    ) 

 

admin.site.register(StudyRegion, StudyRegionAdmin)