summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-11 12:24:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-11 12:34:19 +0200
commit8b8cd541389412c4960f068848db7e45b71459b9 (patch)
treecb0f5c8d5ef419afc1d22f93cd8461a57f8cc653 /archaeological_finds/models_finds.py
parent3ca42ee5280f3e1ee3f74ed6d61a4181188d0450 (diff)
downloadIshtar-8b8cd541389412c4960f068848db7e45b71459b9.tar.bz2
Ishtar-8b8cd541389412c4960f068848db7e45b71459b9.zip
✨ criteria searches: add missing criteria for operation, find and context records (refs #6020) - Context records bulk update: add fields
Criteria searches: - Finds: context record type - Operations: has an attached archeo file - Context records : - Type of documentation - Description - Filling - General comment Context records bulk update: - documentation - identification - excavation technic
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index f8a978b67..a5ff20773 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1366,6 +1366,10 @@ class Find(
pgettext_lazy("key for text search", "context-record"),
"base_finds__context_record__cached_label__icontains",
),
+ "base_finds__context_record__unit": SearchAltName(
+ pgettext_lazy("key for text search", "context-record-type"),
+ "base_finds__context_record__unit__label__iexact",
+ ),
"base_finds__comment": SearchAltName(
pgettext_lazy("key for text search", "discovery-comment"),
"base_finds__comment__iexact",