diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-28 20:26:31 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-28 20:26:31 +0200 |
commit | 95c7286324b93564e1c996f18a4f1614a4ee6f1d (patch) | |
tree | 3652f3dcb6991a052ec6a1c9ec2e89f0038a5cd0 /ishtar_common | |
parent | 6f80a494ceac19d5db0650a591bf112b09ea2eba (diff) | |
download | Ishtar-95c7286324b93564e1c996f18a4f1614a4ee6f1d.tar.bz2 Ishtar-95c7286324b93564e1c996f18a4f1614a4ee6f1d.zip |
Force regeneration of cached labels when add M2M or changing ids
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/wizards.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index c8467ca61..c065459f6 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -553,6 +553,7 @@ class Wizard(NamedUrlWizardView): getattr(obj, k).add(adds[k]) # necessary to manage interaction between models like # material_index management for baseitems + obj._cached_label_checked = False obj.save() m2m_items = {} # clear @@ -618,6 +619,7 @@ class Wizard(NamedUrlWizardView): related_model.add(value) # necessary to manage interaction between models like # material_index management for baseitems + obj._cached_label_checked = False obj.save() # make the new object a default if self.current_obj_slug: @@ -715,7 +717,7 @@ class Wizard(NamedUrlWizardView): # and self.form_initialized: # for k in init[0]: # data[step + '-' + unicode(total_field) + '-' + k] = \ - # init[0][k] + # init[0][k] data = data or None form = super(Wizard, self).get_form(step, data, files) |