From cb1e9f1f15c38f68c1859b2dfd67870b0ed81240 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 29 May 2024 11:10:50 +0200 Subject: 🐛 criteria search - towns - related model: fix * and - * (refs #5882) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_context_records') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index a112829f1..940b7347f 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -598,6 +598,7 @@ class ContextRecord( "archaeological_site": SearchAltName( pgettext_lazy("key for text search", "site"), "archaeological_site__cached_label__icontains", + related_name="archaeological_site" ), "ope_relation_types": SearchAltName( pgettext_lazy("key for text search", "operation-relation-type"), -- cgit v1.2.3