From c05c2e541035ba8d7635b74dbacf12f2a8777aae Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 23 Nov 2021 15:45:59 +0100 Subject: Context record search: common name criteria must be exact --- archaeological_context_records/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 257e378ce..a5608c8d0 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -505,7 +505,8 @@ class ContextRecord( pgettext_lazy("key for text search", "operation-year"), "operation__year" ), "operation__common_name": SearchAltName( - pgettext_lazy("key fro text search", "operation-name"), "operation__common_name__icontains" + pgettext_lazy("key for text search", "operation-name"), + "operation__common_name__iexact" ), "operation__code_patriarche": SearchAltName( pgettext_lazy("key for text search", "patriarche"), -- cgit v1.2.3