diff options
Diffstat (limited to 'app/media/admin.py')
-rw-r--r-- | app/media/admin.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/media/admin.py b/app/media/admin.py index f28d259..8e05d8c 100644 --- a/app/media/admin.py +++ b/app/media/admin.py @@ -1,6 +1,5 @@ from django.contrib import admin from django import forms -from django.contrib.gis.admin import OSMGeoAdmin from .models import LuxImage, LuxGallery, LuxImageSize, LuxVideo from django.shortcuts import render from django.contrib.admin import helpers @@ -8,17 +7,17 @@ from django.http import HttpResponseRedirect @admin.register(LuxImageSize) -class LuxImageSizeAdmin(OSMGeoAdmin): +class LuxImageSizeAdmin(admin.ModelAdmin): list_display = ('name','slug', 'width', 'height', 'quality') @admin.register(LuxVideo) -class LuxVideoAdmin(OSMGeoAdmin): +class LuxVideoAdmin(admin.ModelAdmin): pass @admin.register(LuxImage) -class LuxImageAdmin(OSMGeoAdmin): +class LuxImageAdmin(admin.ModelAdmin): list_display = ('pk', 'admin_thumbnail', 'pub_date', 'caption', 'location') list_filter = ('pub_date', 'location') search_fields = ['title', 'caption', 'alt'] |