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 | 8e3bbe980da00009663a9ed2c43272065cf60a1a (patch) | |
tree | f99332c5c1e599f9534349fb2ea4dcad81310dc7 /ishtar_common/models.py | |
parent | a328d42060b01d87919d9048d00097a5d9f934fb (diff) | |
download | Ishtar-8e3bbe980da00009663a9ed2c43272065cf60a1a.tar.bz2 Ishtar-8e3bbe980da00009663a9ed2c43272065cf60a1a.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", |