summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-02 12:28:03 -0500
committerluxagraf <sng@luxagraf.net>2020-12-02 12:28:03 -0500
commit034b418d46804b3cfcc664551d2e24390be6556b (patch)
tree88c1a9267cee0d5b7994820f54989389c59d134b
parent550127b86684e65277aa27cdb068308c820d5abb (diff)
fixed media admin to show slug
-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')