X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cf265108541da0a0f54e2b4517ce9441e8ccf795..fc330c6c7cee602ac344c3f180065a70226dae8a:/apps/explorer/admin.py?ds=sidebyside diff --git a/apps/explorer/admin.py b/apps/explorer/admin.py index 10c3e79a..dd765f59 100644 --- a/apps/explorer/admin.py +++ b/apps/explorer/admin.py @@ -1,7 +1,14 @@ from django.contrib import admin import explorer.models +from explorer import forms admin.site.register(explorer.models.EditorSettings) admin.site.register(explorer.models.EditorPanel) -admin.site.register(explorer.models.GalleryForDocument) \ No newline at end of file + +class GalleryAdmin(admin.ModelAdmin): + form = forms.GalleryChoiceForm + list_display = ('document', 'subpath',) + search_fields = ('document', 'subpath',) + +admin.site.register(explorer.models.GalleryForDocument, GalleryAdmin) \ No newline at end of file