From 1d049ac1cac1aa74610e298f5d074527dabdbb5c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 6 Feb 2025 17:56:14 +0100 Subject: ✨ Town, area searches for person, organisations, archaeological files, context records, warehouses and containers (refs #6095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 8046cef7e..eae4e3720 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -633,6 +633,9 @@ class ContextRecord( "town": SearchAltName( pgettext_lazy("key for text search", "town"), "town__cached_label__iexact" ), + "area": SearchAltName( + pgettext_lazy("key for text search", "area"), "town__areas__label__iexact" + ), "operation__year": SearchAltName( pgettext_lazy("key for text search", "operation-year"), "operation__year" ), -- cgit v1.2.3