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