summaryrefslogtreecommitdiff
path: root/apps/blog/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/blog/admin.py')
-rw-r--r--apps/blog/admin.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/blog/admin.py b/apps/blog/admin.py
index d641b5b..78ad458 100644
--- a/apps/blog/admin.py
+++ b/apps/blog/admin.py
@@ -17,16 +17,19 @@ 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')
+ 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')
fieldsets = (
- ('Entry', {'fields': ('title','body_markdown', ('location','region'), 'pub_date', ('status','enable_comments'), 'tags', 'slug'), 'classes': ('show','extrapretty','wide')}),
+ ('Entry', {'fields': ('title','body_markdown', ('location','region'), 'pub_date', ('status','enable_comments'), 'tags', 'slug','photo_gallery'), 'classes': ('show','extrapretty','wide')}),
('Pub Location', {'fields': ('point',('thumbnail',),'dek', 'title_keywords'), 'classes': ('collapse', 'wide')}),
)
- extra_js = [GMAP.api_url + GMAP.key]
- map_template = 'gis/admin/google.html'
+
+ class Media:
+ js = ['/media/admin/custom/model.js']
+ #extra_js = [GMAP.api_url + GMAP.key]
+ #map_template = 'gis/admin/google.html'
# Default GeoDjango OpenLayers map options
# Uncomment and modify as desired
# To learn more about this jargon visit: