From a515f83fab51fd3efb61da22d7c2e9810535ccc6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Jun 2019 15:34:05 +0200 Subject: Searches: fix history modifier --- archaeological_finds/models_treatments.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_finds/models_treatments.py') 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) -- cgit v1.2.3