summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-06 17:56:14 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:57 +0100
commit1d049ac1cac1aa74610e298f5d074527dabdbb5c (patch)
tree445d97245a46afef7ac79b7782318ed50aa46976 /archaeological_context_records/models.py
parent32b4271ea9e7540a7613429563fffde20e57690d (diff)
downloadIshtar-1d049ac1cac1aa74610e298f5d074527dabdbb5c.tar.bz2
Ishtar-1d049ac1cac1aa74610e298f5d074527dabdbb5c.zip
✨ Town, area searches for person, organisations, archaeological files, context records, warehouses and containers (refs #6095)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py3
1 files changed, 3 insertions, 0 deletions
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"
),