diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-23 11:28:10 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-23 11:28:10 -0400 |
commit | 518b2d618bc10f93cfa44a83715593b8358eb9ce (patch) | |
tree | a07993c3ae31bed42f32c0e00788989568790716 /app/builder/admin.py | |
parent | 4bae11bb25a8e3c43118891d17fd8e981ecf8dc6 (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/builder/admin.py')
-rw-r--r-- | app/builder/admin.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/builder/admin.py b/app/builder/admin.py index ee6957e..4dccd80 100644 --- a/app/builder/admin.py +++ b/app/builder/admin.py @@ -17,7 +17,7 @@ class EntryAdmin(OSMGeoAdmin): else: field = super(EntryAdmin,self).formfield_for_dbfield(db_field,**kwargs) return field - list_display = ('title', 'pub_date','enable_comments', 'status','region','location','photo_gallery') + list_display = ('title', 'pub_date','enable_comments', 'status','region','location','photo_gallery') search_fields = ['title', 'body_markdown'] prepopulated_fields = {"slug" : ('title',)} list_filter = ('pub_date', 'enable_comments', 'status','region','location') @@ -25,7 +25,7 @@ class EntryAdmin(OSMGeoAdmin): ('Entry', {'fields': ('title','body_markdown', ('location','region'), 'pub_date', ('status','enable_comments'), 'slug','photo_gallery'), 'classes': ('show','extrapretty','wide')}), ('Pub Location', {'fields': ('point',('image','thumbnail',),'dek', 'topics', 'meta_description','template_name'), 'classes': ('collapse', 'wide')}), ) - + class Media: js = ['/media/admin/custom/model.js'] extra_js = [GMAP.api_url + GMAP.key] @@ -35,7 +35,7 @@ class EntryAdmin(OSMGeoAdmin): # Uncomment and modify as desired # To learn more about this jargon visit: # www.openlayers.org - + default_lon = -9314310 default_lat = 3991847 default_zoom = 6 @@ -65,16 +65,16 @@ class EntryAdmin(OSMGeoAdmin): #debug = False #widget = OpenLayersWidget - + class PostImageAdmin(admin.ModelAdmin): list_display = ('title', 'output_tags') - + class TopicAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Topic, TopicAdmin) -admin.site.register(PostImage, PostImageAdmin) +admin.site.register(PostImage, PostImageAdmin) admin.site.register(Entry, EntryAdmin) |