summaryrefslogtreecommitdiff
path: root/app/birds/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-23 11:28:10 -0400
committerluxagraf <sng@luxagraf.net>2014-05-23 11:28:10 -0400
commit518b2d618bc10f93cfa44a83715593b8358eb9ce (patch)
treea07993c3ae31bed42f32c0e00788989568790716 /app/birds/admin.py
parent4bae11bb25a8e3c43118891d17fd8e981ecf8dc6 (diff)
minor refactor to adoipt pep8 and pyflakes coding styles and clean up
some cruft that's been hangin round for years
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 a9d60b0..e40baab 100644
--- a/app/birds/admin.py
+++ b/app/birds/admin.py
@@ -6,14 +6,15 @@ from birds.models import BirdSighting, BirdClass, Bird
class BirdClassAdmin(admin.ModelAdmin):
list_display = ('common_name', 'scientific_name',)
+
class BirdAdmin(admin.ModelAdmin):
- list_display = ('pk','common_name', 'scientific_name','code','bird_class')
+ list_display = ('pk', 'common_name', 'scientific_name', 'code', 'bird_class')
class BirdSightingAdmin(OSMGeoAdmin):
- list_display = ('bird', 'location',)
+ list_display = ('bird', 'location')
list_filter = ('location',)
- #options for OSM map Using custom ESRI topo map
+ # options for OSM map Using custom ESRI topo map
default_lon = -9285175
default_lat = 4025046
default_zoom = 6
@@ -22,6 +23,7 @@ class BirdSightingAdmin(OSMGeoAdmin):
map_width = 700
map_height = 425
map_template = 'gis/admin/osm.html'
+
admin.site.register(BirdSighting, BirdSightingAdmin)
admin.site.register(BirdClass, BirdClassAdmin)
admin.site.register(Bird, BirdAdmin)