diff options
author | Cefin <kevon@tuta.io> | 2021-10-06 10:52:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | c31968cbdd4ff96c237c0835cca09b0d0dbba702 (patch) | |
tree | 4e9a081fb7ceaa39bd1592286c294b9dd620e68f /archaeological_context_records/models.py | |
parent | c9edc4af86bade1285ee4143b8aa681f8b553c16 (diff) | |
download | Ishtar-c31968cbdd4ff96c237c0835cca09b0d0dbba702.tar.bz2 Ishtar-c31968cbdd4ff96c237c0835cca09b0d0dbba702.zip |
adding excavation technique field on search
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index db45418b7..aebee6d5f 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -542,6 +542,9 @@ class ContextRecord( pgettext_lazy("key for text search", "record-relation-type"), "cr_relation_types", ), + "excavation_technic": SearchAltName( + pgettext_lazy("key for text search", "excavation-technic"), "excavation_technic__label__iexact" + ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) |