From 034b418d46804b3cfcc664551d2e24390be6556b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 2 Dec 2020 12:28:03 -0500 Subject: fixed media admin to show slug --- app/media/admin.py | 8 +++----- 1 file 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') -- cgit v1.2.3-70-g09d2