summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-05 15:34:05 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-05 15:34:23 +0200
commita515f83fab51fd3efb61da22d7c2e9810535ccc6 (patch)
treea5084dc4acfe5444b00b50b17e26fa0269fe4dea /archaeological_finds
parent664cab418cda08d1e133d4d30b70332a893375af (diff)
downloadIshtar-a515f83fab51fd3efb61da22d7c2e9810535ccc6.tar.bz2
Ishtar-a515f83fab51fd3efb61da22d7c2e9810535ccc6.zip
Searches: fix history modifier
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_finds.py1
-rw-r--r--archaeological_finds/models_treatments.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 2616d61fa..2d78b883e 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1295,6 +1295,7 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
pgettext_lazy(u"key for text search", u"appraisal-date-after"),
'appraisal_date__gte'),
}
+ ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES)
DYNAMIC_REQUESTS = {
'current_division': DynamicRequest(
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 512fd8a05..84855180a 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -119,6 +119,7 @@ class Treatment(DashboardFormItem, ValueGetter, DocumentItem,
'treatment_types__label__iexact'
),
}
+ ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES)
HISTORICAL_M2M = [
'treatment_types',
]
@@ -928,6 +929,7 @@ class TreatmentFile(DashboardFormItem, ClosedItem, DocumentItem,
'applicant_organisation__cached_label__iexact'
),
}
+ ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES)
# fields
year = models.IntegerField(_(u"Year"), default=get_current_year)