diff options
Diffstat (limited to 'app/media/admin.py')
-rw-r--r-- | app/media/admin.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/media/admin.py b/app/media/admin.py index 2ccce29..f46475c 100644 --- a/app/media/admin.py +++ b/app/media/admin.py @@ -6,7 +6,7 @@ from django.shortcuts import render from django.contrib.admin import helpers from django.http import HttpResponseRedirect -from utils.widgets import OLAdminBase +from utils.widgets import OLAdminBase, LGEntryForm, ImageRadioSelect @admin.register(LuxImageSize) class LuxImageSizeAdmin(admin.ModelAdmin): @@ -41,7 +41,7 @@ class LuxImageAdmin(OLAdminBase): 'fields': ( ('is_public'), ('photo_credit_source', 'photo_credit_url'), - 'exif_raw', 'exif_aperture', 'exif_make', 'exif_model', 'exif_exposure', 'exif_iso', 'exif_focal_length', 'exif_lens', 'exif_date', 'height', 'width'), + 'height', 'width'), }), ) @@ -53,3 +53,15 @@ class LuxImageAdmin(OLAdminBase): class Media: js = ('image-preview.js', 'next-prev-links.js') + + +@admin.register(LuxGallery) +class LuxGalleryAdmin(admin.ModelAdmin): + form = LGEntryForm + class Meta: + widgets = { + 'images': ImageRadioSelect, + } + autocomplete_fields = ['images'] + list_display = ('title','pub_date', 'thumb') + |