summaryrefslogtreecommitdiff
path: root/app/builder/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder/admin.py')
-rw-r--r--app/builder/admin.py12
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)