From a634566637d52380f1289be46bdcfd9e636f31af Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 23 Feb 2024 17:07:51 +0100 Subject: ✨ document related search: search by document type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 38aa6fc51..8a9de207e 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -1833,6 +1833,10 @@ class DocumentItem: pgettext_lazy("key for text search", "has-attached-file"), "documents__associated_file__isnull", ), + "documents__source_type": SearchAltName( + pgettext_lazy("key for text search", "document-type"), + "documents__source_type__label__iexact", + ), } def documents_list(self) -> list: -- cgit v1.2.3