X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/13f286427e0ceb7a6c442844c447c7c3d5495871..689050858446fed8c38d8470be29f89f70cecf04:/src/catalogue/admin.py?ds=inline diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 68a362b5..2759f9a3 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -62,8 +62,22 @@ class AuthorAdmin(WikidataAdminMixin, TabbedTranslationAdmin): "genitive", "gender", "nationality", - ("date_of_birth", "year_of_birth", "year_of_birth_inexact", "year_of_birth_range", "place_of_birth"), - ("date_of_death", "year_of_death", "year_of_death_inexact", "year_of_death_range", "place_of_death"), + ( + "date_of_birth", + "year_of_birth", + "year_of_birth_inexact", + "year_of_birth_range", + "century_of_birth", + "place_of_birth" + ), + ( + "date_of_death", + "year_of_death", + "year_of_death_inexact", + "year_of_death_range", + "century_of_death", + "place_of_death" + ), ("description", "description_preview"), "status", "collections", @@ -273,6 +287,7 @@ class BookAdmin(WikidataAdminMixin, NumericFilterModelAdmin): "estimate_source", "document_book__project", + "audience", "first_publication_year", "monthly_views_page", @@ -473,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']