summaryrefslogtreecommitdiff
path: root/app/birds/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/birds/admin.py')
-rw-r--r--app/birds/admin.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/birds/admin.py b/app/birds/admin.py
index 7bcaab2..ff2db93 100644
--- a/app/birds/admin.py
+++ b/app/birds/admin.py
@@ -1,7 +1,8 @@
from django.contrib import admin
from django.contrib.gis.admin import OSMGeoAdmin
from birds.models import BirdSighting, BirdAudio, BirdClass, Bird
-from django.contrib.gis.geos import GEOSGeometry, Point
+from django.contrib.gis.geos import GEOSGeometry
+
def convertll(lat, lon):
pnt = GEOSGeometry('POINT({0} {1})'.format(lon, lat), srid=4326)
@@ -18,18 +19,19 @@ lat = 4025046
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):
-
list_display = ('bird', 'location')
- list_filter = ('location',)
+ list_filter = ('seen_by', 'location',)
fieldsets = (
('Sighting', {
'fields': (