summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
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
commitf296333a87085ee0e04a0f4fbfc207c112f17bce (patch)
tree3652f3dcb6991a052ec6a1c9ec2e89f0038a5cd0 /ishtar_common
parent328de388cf7c8cd213752c01dfadc2a19e8acb6f (diff)
downloadIshtar-f296333a87085ee0e04a0f4fbfc207c112f17bce.tar.bz2
Ishtar-f296333a87085ee0e04a0f4fbfc207c112f17bce.zip
Force regeneration of cached labels when add M2M or changing ids
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/wizards.py4
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)