diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-05-25 16:06:30 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-05-25 16:06:30 +0200 |
commit | 95f3bdd01e9adfe9e69da5a61ddb788f54d3a1e3 (patch) | |
tree | 467b157dea9c9e228d048b50a17524f877bf29bc /archaeological_finds/models_finds.py | |
parent | ba056933f0f33d03729b0bb445f073d693e305e1 (diff) | |
download | Ishtar-95f3bdd01e9adfe9e69da5a61ddb788f54d3a1e3.tar.bz2 Ishtar-95f3bdd01e9adfe9e69da5a61ddb788f54d3a1e3.zip |
Search finds - context records: add missing search criterias for datings
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r-- | archaeological_finds/models_finds.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 68a7bfe51..51df74c20 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1004,10 +1004,6 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem, pgettext_lazy("key for text search", "context-record-relation-type"), 'cr_relation_types'), - 'datings__period': - SearchAltName( - pgettext_lazy("key for text search", "period"), - 'datings__period__label__iexact'), 'material_types': SearchAltName( pgettext_lazy("key for text search", "material"), @@ -1363,6 +1359,7 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem, } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) + ALT_NAMES.update(Dating.ASSOCIATED_ALT_NAMES) DYNAMIC_REQUESTS = { 'current_division': DynamicRequest( |