X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a947b4266b1e464b54d47a7acfbeccc504b9f663..befc2441c91ddbd8eea67b8d8de48cc281a4bbce:/apps/explorer/admin.py?ds=sidebyside diff --git a/apps/explorer/admin.py b/apps/explorer/admin.py index a03f3936..dd765f59 100644 --- a/apps/explorer/admin.py +++ b/apps/explorer/admin.py @@ -1,8 +1,14 @@ from django.contrib import admin -from django.utils.translation import ugettext_lazy as _ -from explorer import models +import explorer.models +from explorer import forms -admin.site.register(models.Book) -admin.site.register(models.PullRequest) +admin.site.register(explorer.models.EditorSettings) +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