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.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']