diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-11-12 21:58:26 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-11-12 21:58:26 +0000 |
commit | b0464d2bcb252c8d2cef9dfca9dd7b40ec498c55 (patch) | |
tree | f39715fefd2828fd794a25fcf5301ed1ffd14ce0 /apps/blog/admin.py | |
parent | c9022d38a303dcd756d34a2cbc4e3c49b22e0cf2 (diff) |
speed optimizations
Diffstat (limited to 'apps/blog/admin.py')
-rw-r--r-- | apps/blog/admin.py | 11 |
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: |