summaryrefslogtreecommitdiff
path: root/archaeological_finds
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
commit49e07525f03cf79fafe8d57e4fad7c89642eb3ac (patch)
treeda3e369aeaed34f171a322d44d33079760518f15 /archaeological_finds
parentfcd71270f6cf9136ea0477612fb9db378b1aa62d (diff)
downloadIshtar-49e07525f03cf79fafe8d57e4fad7c89642eb3ac.tar.bz2
Ishtar-49e07525f03cf79fafe8d57e4fad7c89642eb3ac.zip
Fix exhibit date search for treatment files
Diffstat (limited to 'archaeological_finds')
-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)