diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-18 10:43:55 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-18 10:43:55 +0200 |
commit | 5afa971792019e16bb067f9020011788587572d8 (patch) | |
tree | e495edf504e1c5aa0b7a992930593afbbd5b9833 /archaeological_finds/models_treatments.py | |
parent | 1bd278fb83d40fcc8f5392320a3238cdad5b8416 (diff) | |
download | Ishtar-5afa971792019e16bb067f9020011788587572d8.tar.bz2 Ishtar-5afa971792019e16bb067f9020011788587572d8.zip |
Json field: fix pre_save in order to initialize json with an empty dict (refs #3077)
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r-- | archaeological_finds/models_treatments.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |