X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/927a991b71d9876995dd2beadee8d9ff16175a50..084544e4f7c9269b1445a9e5109fa641a3e1aaac:/apps/explorer/admin.py?ds=sidebyside diff --git a/apps/explorer/admin.py b/apps/explorer/admin.py index 034eb3bb..dd765f59 100644 --- a/apps/explorer/admin.py +++ b/apps/explorer/admin.py @@ -1,9 +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) -admin.site.register(explorer.models.PullRequest) -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