diff options
-rw-r--r-- | app/media/admin.py | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/app/media/admin.py b/app/media/admin.py index b7319ad..9278c56 100644 --- a/app/media/admin.py +++ b/app/media/admin.py @@ -21,14 +21,28 @@ class LuxVideoAdmin(OSMGeoAdmin): @admin.register(LuxImage) class LuxImageAdmin(OSMGeoAdmin): - list_display = ('pk', 'admin_thumbnail', 'pub_date', 'caption') - list_filter = ('pub_date',) - search_fields = ['title', 'caption'] + list_display = ('pk', 'admin_thumbnail', 'pub_date', 'caption', 'location') + list_filter = ('pub_date', 'location') + search_fields = ['title', 'caption', 'alt'] + list_editable = ('location',) # Options for OSM map Using custom ESRI topo map + default_lon = -9285175 + default_lat = 4025046 + default_zoom = 6 + units = True + scrollable = False + map_width = 700 + map_height = 425 + map_template = 'gis/admin/osm.html' + openlayers_url = '/static/admin/js/OpenLayers.js' fieldsets = ( (None, { - 'fields': ('title', ('image'), 'pub_date', 'sizes', 'alt', 'caption', ('is_public'), ('photo_credit_source', 'photo_credit_url')) + 'fields': ('title', ('image'), 'pub_date', 'sizes', 'alt', 'caption', 'point', ('is_public'), ('photo_credit_source', 'photo_credit_url')) + }), + ('Exif Data', { + 'classes': ('collapse',), + 'fields': ('exif_raw', 'exif_aperture', 'exif_make', 'exif_model', 'exif_exposure', 'exif_iso', 'exif_focal_length', 'exif_lens', 'exif_date', 'height', 'width'), }), ) |