summaryrefslogtreecommitdiff
path: root/app/media
diff options
context:
space:
mode:
Diffstat (limited to 'app/media')
-rw-r--r--app/media/admin.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/media/admin.py b/app/media/admin.py
index 3c5a86a..b7319ad 100644
--- a/app/media/admin.py
+++ b/app/media/admin.py
@@ -9,18 +9,16 @@ from django.contrib.admin import helpers
from django.http import HttpResponseRedirect
+@admin.register(LuxImageSize)
class LuxImageSizeAdmin(OSMGeoAdmin):
- list_display = ('name', 'width', 'height', 'quality')
- pass
-
-
-admin.site.register(LuxImageSize, LuxImageSizeAdmin)
+ list_display = ('name','slug', 'width', 'height', 'quality')
@admin.register(LuxVideo)
class LuxVideoAdmin(OSMGeoAdmin):
pass
+
@admin.register(LuxImage)
class LuxImageAdmin(OSMGeoAdmin):
list_display = ('pk', 'admin_thumbnail', 'pub_date', 'caption')