From 8e3bbe980da00009663a9ed2c43272065cf60a1a Mon Sep 17 00:00:00 2001 From: Cefin Date: Wed, 27 Oct 2021 17:31:29 +0200 Subject: search document by operation type #4698 --- 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 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", -- cgit v1.2.3