From e4bfdb9428550d084dda0a8a9d1485861665b564 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 Sep 2019 23:10:52 +0200 Subject: Fix exhibit date search for treatment files --- archaeological_finds/models_treatments.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archaeological_finds/models_treatments.py') diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 2a19957c8..89364f0fe 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -957,6 +957,11 @@ class TreatmentFile(DashboardFormItem, ClosedItem, DocumentItem, } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) + DATED_FIELDS = ['exhibition_start_date__lte', + 'exhibition_start_date__gte', + 'exhibition_end_date__lte', + 'exhibition_end_date__gte'] + # fields year = models.IntegerField(_(u"Year"), default=get_current_year) index = models.IntegerField(_(u"Index"), default=1) -- cgit v1.2.3