diff options
Diffstat (limited to 'app/birds/admin.py')
-rw-r--r-- | app/birds/admin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/birds/admin.py b/app/birds/admin.py index 01a6f4c..8c09b7b 100644 --- a/app/birds/admin.py +++ b/app/birds/admin.py @@ -1,14 +1,17 @@ from django.contrib import admin from django.contrib.gis.admin import OSMGeoAdmin -from birds.models import BirdSighting, BirdClass, Bird +from birds.models import BirdSighting, BirdAudio, BirdClass, Bird class BirdClassAdmin(admin.ModelAdmin): list_display = ('common_name', 'scientific_name',) +class BirdAudioAdmin(admin.ModelAdmin): + list_display = ('bird', 'recorder',) class BirdAdmin(admin.ModelAdmin): list_display = ('pk', 'common_name', 'scientific_name', 'code', 'bird_class') + list_filter = ('bird_class',) class BirdSightingAdmin(OSMGeoAdmin): @@ -17,7 +20,7 @@ class BirdSightingAdmin(OSMGeoAdmin): # options for OSM map Using custom ESRI topo map default_lon = -9285175 default_lat = 4025046 - default_zoom = 6 + default_zoom = 10 units = True scrollable = False map_width = 700 @@ -27,4 +30,5 @@ class BirdSightingAdmin(OSMGeoAdmin): admin.site.register(BirdSighting, BirdSightingAdmin) admin.site.register(BirdClass, BirdClassAdmin) +admin.site.register(BirdAudio, BirdAudioAdmin) admin.site.register(Bird, BirdAdmin) |