summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
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
commit6ca01e3dbea08b018b6f21ac2d149e101f91a9c4 (patch)
tree467b157dea9c9e228d048b50a17524f877bf29bc /archaeological_finds/models_finds.py
parent07437a1b608b6dc9b508ae0a5e4b033431795745 (diff)
downloadIshtar-6ca01e3dbea08b018b6f21ac2d149e101f91a9c4.tar.bz2
Ishtar-6ca01e3dbea08b018b6f21ac2d149e101f91a9c4.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.py5
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(