X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f42848b5995d52b1812131c197553a821dfb7e16..cc489b0c8d9ed514fddd5ccb81c9c1f62666663f:/src/catalogue/admin.py diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 1bb7f833..8ce330ce 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -44,16 +44,18 @@ class BookAdmin(WikidataAdminMixin, NumericFilterModelAdmin): autocomplete_fields = ["authors", "translators", "based_on", "collections", "epochs", "genres", "kinds"] prepopulated_fields = {"slug": ("title",)} list_filter = [ - "language", - "based_on__language", - ("pd_year", RangeNumericFilter), - "collections", - "collections__category", - "epochs", "kinds", "genres", - "priority", - "authors__gender", "authors__nationality", - "translators__gender", "translators__nationality", - ] + "language", + "based_on__language", + ("pd_year", RangeNumericFilter), + "collections", + "collections__category", + "epochs", "kinds", "genres", + "priority", + "authors__gender", "authors__nationality", + "translators__gender", "translators__nationality", + "document_book__chunk__stage", + "document_book__chunk__user", + ] readonly_fields = ["wikidata_link", "estimated_costs"] actions = [export_as_csv_action()] fieldsets = [ @@ -135,7 +137,7 @@ class CollectionAdmin(admin.ModelAdmin): autocomplete_fields = [] prepopulated_fields = {"slug": ("name",)} search_fields = ["name"] - fields = ['name', 'slug', 'category', 'estimated_costs'] + fields = ['name', 'slug', 'category', 'notes', 'estimated_costs'] readonly_fields = ['estimated_costs'] inlines = [AuthorInline, BookInline]