summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-09 12:42:42 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:42:35 +0200
commit76e7251afeb2e811ca4e7eb9b927a335ad471986 (patch)
tree31402d208fdf3060823c50166ca3a1f5765bff6e /ishtar_common/wizards.py
parent36372df20e8d19473c292345713445c599685d8b (diff)
downloadIshtar-76e7251afeb2e811ca4e7eb9b927a335ad471986.tar.bz2
Ishtar-76e7251afeb2e811ca4e7eb9b927a335ad471986.zip
Wizards: fix post save after adding M2M to manage geo
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 47355dd06..ab17ff422 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -898,10 +898,11 @@ class Wizard(IshtarWizard):
)
else:
related_model.add(value)
- # necessary to manage interaction between models like
- # material_index management for baseitems
- obj._cached_label_checked = False
- obj.save()
+ # necessary to manage interaction between models like
+ # material_index management for baseitems
+ obj._cached_label_checked = False
+ obj._post_saved_geo = False
+ obj.save()
# force post_save for old related m2ms (which can have been detached
# from the current object)