summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-24 19:34:27 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-24 19:37:02 +0200
commitc3b928b50cda4c087699fff50fd6e91dd75d2580 (patch)
treefb1c2133c08e1bdc3d1a087618c59776546ee266 /ishtar_common/wizards.py
parentbc959913ada31882c49bbfe510933edc9f043444 (diff)
downloadIshtar-c3b928b50cda4c087699fff50fd6e91dd75d2580.tar.bz2
Ishtar-c3b928b50cda4c087699fff50fd6e91dd75d2580.zip
Datings: post-fix of duplicates associated to the same object (usually on imports)
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 3f90f8c48..c5158dfcd 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -757,6 +757,10 @@ class Wizard(NamedUrlWizardView):
item.skip_history_when_saving = True
item.save()
+ if hasattr(obj, 'fix'):
+ # post save/m2m specific fix
+ obj.fix()
+
# make the new object a default
if self.current_obj_slug:
self.request.session[self.current_obj_slug] = unicode(obj.pk)