summaryrefslogtreecommitdiff
path: root/app/media/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/media/admin.py')
-rw-r--r--app/media/admin.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/app/media/admin.py b/app/media/admin.py
index 8e05d8c..5ee71a5 100644
--- a/app/media/admin.py
+++ b/app/media/admin.py
@@ -5,6 +5,7 @@ from django.shortcuts import render
from django.contrib.admin import helpers
from django.http import HttpResponseRedirect
+from utils.widgets import OLAdminBase
@admin.register(LuxImageSize)
class LuxImageSizeAdmin(admin.ModelAdmin):
@@ -17,21 +18,11 @@ class LuxVideoAdmin(admin.ModelAdmin):
@admin.register(LuxImage)
-class LuxImageAdmin(admin.ModelAdmin):
+class LuxImageAdmin(OLAdminBase):
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, {