diff options
author | Cefin <kevon@tuta.io> | 2021-10-27 17:31:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 33efb94deb35fac36f9beb0b7320f9d9f92f7d09 (patch) | |
tree | f99332c5c1e599f9534349fb2ea4dcad81310dc7 /ishtar_common/models.py | |
parent | 52c3297e42a77c322539b324fd9a870a6b0e59e7 (diff) | |
download | Ishtar-33efb94deb35fac36f9beb0b7320f9d9f92f7d09.tar.bz2 Ishtar-33efb94deb35fac36f9beb0b7320f9d9f92f7d09.zip |
search document by operation type #4698
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 9c508c9fc..95fc2cef6 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3694,6 +3694,10 @@ class Document( pgettext_lazy("key for text search", "operation"), "operations__cached_label__iexact", ), + "operations__operation_type": SearchAltName( + pgettext_lazy("key for text search", "operation-type"), + "operations__operation_type__label__iexact", + ), "context_record": SearchAltName( pgettext_lazy("key for text search", "context-record"), "context_records__cached_label__iexact", |