From e5c437bd14924e7b272914579a23dc4516699a23 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 2 Nov 2020 13:56:08 +0100 Subject: [PATCH 1/1] Filtering catalogue books by work stage and user. --- src/catalogue/admin.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 1bb7f833..a6289613 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 = [ -- 2.20.1