summaryrefslogtreecommitdiff
path: root/app/media
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-02 12:39:09 -0500
committerluxagraf <sng@luxagraf.net>2020-12-02 12:39:09 -0500
commitd4e55690d3293f375cb207693e9b02b39b4a940e (patch)
treeb86c51108de32cf07e42e4a030384f283b097b45 /app/media
parent034b418d46804b3cfcc664551d2e24390be6556b (diff)
added geodata back to media image admin
Diffstat (limited to 'app/media')
-rw-r--r--app/media/admin.py22
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'),
}),
)