summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-16 23:10:52 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-16 23:10:52 +0200
commite4bfdb9428550d084dda0a8a9d1485861665b564 (patch)
treeda3e369aeaed34f171a322d44d33079760518f15 /archaeological_finds/models_treatments.py
parent72e1ef1b3616fa524abd4d26660cc341e35259d3 (diff)
downloadIshtar-e4bfdb9428550d084dda0a8a9d1485861665b564.tar.bz2
Ishtar-e4bfdb9428550d084dda0a8a9d1485861665b564.zip
Fix exhibit date search for treatment files
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py5
1 files changed, 5 insertions, 0 deletions
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)