From d2539c0d1814e6d8bdf116b64e77680bbbf32268 Mon Sep 17 00:00:00 2001 From: Cefin Date: Thu, 28 Oct 2021 10:18:04 +0200 Subject: adding on document search by operation year #5194 --- ishtar_common/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 43dc5ed51..f5f1d8859 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3689,6 +3689,10 @@ class Document( pgettext_lazy("key for text search", "operation-type"), "operations__operation_type__label__iexact", ), + "operations__year": SearchAltName( + pgettext_lazy("key for text search", "operation-year"), + "operations__year", + ), "context_record": SearchAltName( pgettext_lazy("key for text search", "context-record"), "context_records__cached_label__iexact", -- cgit v1.2.3