X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a9b4700e3cd649a6dddc3b72dc0bd632f7841c74..3957e054be29921a1ace348bdebdcb805a1f89ff:/src/catalogue/admin.py?ds=sidebyside diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 54350a67..2759f9a3 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -488,3 +488,10 @@ admin.site.register(models.WorkType, WorkTypeAdmin) @admin.register(models.Place) class PlaceAdmin(WikidataAdminMixin, TabbedTranslationAdmin): search_fields = ['name'] + + +@admin.register(models.Thema) +class ThemaAdmin(admin.ModelAdmin): + list_display = ['code', 'name', 'usable', 'hidden'] + list_filter = ['usable', 'hidden'] + search_fields = ['code', 'name', 'description']