+
+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