X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a9b4700e3cd649a6dddc3b72dc0bd632f7841c74..689050858446fed8c38d8470be29f89f70cecf04:/src/catalogue/admin.py 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']