From 5afa971792019e16bb067f9020011788587572d8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Oct 2017 10:43:55 +0200 Subject: Json field: fix pre_save in order to initialize json with an empty dict (refs #3077) --- archaeological_finds/models_treatments.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index b4d98528b..03eeed452 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -225,6 +225,7 @@ class Treatment(DashboardFormItem, ValueGetter, BaseHistorizedItem, return values def pre_save(self): + super(Treatment, self).pre_save() # is not new if self.pk is not None: return -- cgit v1.2.3