From c3309b29195d6c48914534360883acd543e23e20 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 9 May 2023 17:52:08 +0200 Subject: Fix container search for documents --- ishtar_common/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index c4beb0bff..fd3a49789 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2569,7 +2569,7 @@ class Organization(Address, Merge, OwnPerms, BaseGenderedType, ValueGetter, Main ), "precise_town_id": SearchAltName( pgettext_lazy("key for text search", "precise-town"), - "precise_town_id__cached_label", + "precise_town_id", ), } QA_EDIT = QuickAction( @@ -4056,11 +4056,11 @@ class Document( ), "warehouse_container": SearchAltName( pgettext_lazy("key for text search", "warehouse-container"), - "container__cached_label__iexact", + "wcontainer_id", ), "warehouse_container_ref": SearchAltName( pgettext_lazy("key for text search", "warehouse-container-reference"), - "container_ref__cached_label__iexact", + "wcontainer_ref_id", ), "comment": SearchAltName( pgettext_lazy("key for text search", "comment"), "comment__iexact" -- cgit v1.2.3