From c3b928b50cda4c087699fff50fd6e91dd75d2580 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 24 Jul 2017 19:34:27 +0200 Subject: Datings: post-fix of duplicates associated to the same object (usually on imports) --- ishtar_common/wizards.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/wizards.py') 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) -- cgit v1.2.3