From 8b8cd541389412c4960f068848db7e45b71459b9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 11 Sep 2024 12:24:21 +0200 Subject: ✨ criteria searches: add missing criteria for operation, find and context records (refs #6020) - Context records bulk update: add fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- archaeological_context_records/models.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 223037127..e13633d90 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -638,6 +638,26 @@ class ContextRecord( pgettext_lazy("key for text search", "identification"), "identifications__label__iexact" ), + "documentations": SearchAltName( + pgettext_lazy("key for text search", "documentation"), + "documentations__label__iexact" + ), + "description": SearchAltName( + pgettext_lazy("key for text search", "description"), + "description__iexact" + ), + "filling": SearchAltName( + pgettext_lazy("key for text search", "filling"), + "filling__iexact" + ), + "interpretation": SearchAltName( + pgettext_lazy("key for text search", "interpretation"), + "interpretation__iexact" + ), + "comment": SearchAltName( + pgettext_lazy("key for text search", "comment"), + "comment__iexact" + ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) -- cgit v1.2.3