diff options
author | Cefin <kevon@tuta.io> | 2021-10-06 10:52:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-10-25 12:06:03 +0200 |
commit | 7ea5b7c160cf44766f66450806fd5223621ca86c (patch) | |
tree | 5b54edfc178915de710ed157affaa50428af2f4a /archaeological_context_records/models.py | |
parent | 8287e7ead4719e47e39fc48d6c1186302dcfdc16 (diff) | |
download | Ishtar-7ea5b7c160cf44766f66450806fd5223621ca86c.tar.bz2 Ishtar-7ea5b7c160cf44766f66450806fd5223621ca86c.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 50952d3a9..6a66e3dfb 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) |