summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-11-23 15:45:59 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commit373698a5e3584b578da6d50e26b14fd82f79ab61 (patch)
tree4faaa97d962670fdabcb88d408e07f95e4c8f423
parent5bcb673673f4909edab72baaf3457772f3a62abe (diff)
downloadIshtar-373698a5e3584b578da6d50e26b14fd82f79ab61.tar.bz2
Ishtar-373698a5e3584b578da6d50e26b14fd82f79ab61.zip
Context record search: common name criteria must be exact
-rw-r--r--archaeological_context_records/models.py3
1 files changed, 2 insertions, 1 deletions
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"),