summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
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
commitc05c2e541035ba8d7635b74dbacf12f2a8777aae (patch)
tree4faaa97d962670fdabcb88d408e07f95e4c8f423 /archaeological_context_records/models.py
parent8b1e49fa998d7a6b82118c63b21bea51ed6d5984 (diff)
downloadIshtar-c05c2e541035ba8d7635b74dbacf12f2a8777aae.tar.bz2
Ishtar-c05c2e541035ba8d7635b74dbacf12f2a8777aae.zip
Context record search: common name criteria must be exact
Diffstat (limited to 'archaeological_context_records/models.py')
-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"),