From 518b2d618bc10f93cfa44a83715593b8358eb9ce Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 23 May 2014 11:28:10 -0400 Subject: minor refactor to adoipt pep8 and pyflakes coding styles and clean up some cruft that's been hangin round for years --- app/birds/admin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/birds/admin.py') 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) -- cgit v1.2.3-70-g09d2