X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f31bb368a2cad9a61e4fc652fa4b40c4114a128c..6e769eb123cc216e4ba642d3a6d943dfd3fa0abe:/apps/explorer/admin.py?ds=sidebyside diff --git a/apps/explorer/admin.py b/apps/explorer/admin.py index 7932f4eb..dd765f59 100644 --- a/apps/explorer/admin.py +++ b/apps/explorer/admin.py @@ -1,7 +1,14 @@ from django.contrib import admin -from django.utils.translation import ugettext_lazy as _ import explorer.models +from explorer import forms admin.site.register(explorer.models.EditorSettings) -admin.site.register(explorer.models.EditorPanel) \ No newline at end of file +admin.site.register(explorer.models.EditorPanel) + +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