summaryrefslogtreecommitdiff
path: root/app/media/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-07-24 16:37:26 -0500
committerluxagraf <sng@luxagraf.net>2024-07-24 16:37:26 -0500
commit88e0f0ac2bd5874256bf7e84fa460965bacdd761 (patch)
treec79a3cc81a2a85be809605b9042b00ca32db095c /app/media/admin.py
parent074ec1e21a7bfa867bbb2c35057c19b5cfc375c4 (diff)
general update
Diffstat (limited to 'app/media/admin.py')
-rw-r--r--app/media/admin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/media/admin.py b/app/media/admin.py
index 50eb879..a9b60f0 100644
--- a/app/media/admin.py
+++ b/app/media/admin.py
@@ -1,6 +1,6 @@
from django.contrib import admin
from django import forms
-from django.contrib.gis.admin import OSMGeoAdmin
+from django.contrib.gis.admin import GISModelAdmin
from .models import LuxImage, LuxGallery, LuxImageSize, LuxVideo
from django.shortcuts import render
from django.contrib.admin import helpers
@@ -8,17 +8,17 @@ from django.http import HttpResponseRedirect
@admin.register(LuxImageSize)
-class LuxImageSizeAdmin(OSMGeoAdmin):
+class LuxImageSizeAdmin(GISModelAdmin):
list_display = ('name','slug', 'width', 'height', 'quality')
@admin.register(LuxVideo)
-class LuxVideoAdmin(OSMGeoAdmin):
+class LuxVideoAdmin(GISModelAdmin):
pass
@admin.register(LuxImage)
-class LuxImageAdmin(OSMGeoAdmin):
+class LuxImageAdmin(GISModelAdmin):
list_display = ('pk', 'admin_thumbnail', 'pub_date', 'caption')
list_filter = ('pub_date',)
search_fields = ['title', 'caption', 'alt']