diff options
| 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 | 
| commit | 73eedc117776ad42e2241232ad1dcc547cb967b2 (patch) | |
| tree | fb1c2133c08e1bdc3d1a087618c59776546ee266 /ishtar_common/wizards.py | |
| parent | 8fa0f928e68e10d4ef055bf9afd47e0e91ce7b55 (diff) | |
| download | Ishtar-73eedc117776ad42e2241232ad1dcc547cb967b2.tar.bz2 Ishtar-73eedc117776ad42e2241232ad1dcc547cb967b2.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.py | 4 | 
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)  | 
