diff options
author | luxagraf <sng@luxagraf.net> | 2024-05-10 14:57:18 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-05-10 14:57:18 -0500 |
commit | 0031ea3b8feea6612a9d37212f350c623ff3b902 (patch) | |
tree | 246f38971a94a996a24572097196e7e175fbb690 /app/media | |
parent | 0166afd8377ebb565ae0b8310d1d08a32420fb6f (diff) |
essays: cleaned up the range section got rid of unused templates and
views
Diffstat (limited to 'app/media')
-rw-r--r-- | app/media/admin.py | 13 |
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, { |