diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-11-07 18:08:36 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:19 +0100 |
commit | dbfb9215264e3232f132e063184a24a7b8048592 (patch) | |
tree | edf596ae5e22eb901b17a4881d37a8958379d810 /ishtar_common/wizards.py | |
parent | b8f767ae2524dd3595afadbcb323a974efdb453e (diff) | |
download | Ishtar-dbfb9215264e3232f132e063184a24a7b8048592.tar.bz2 Ishtar-dbfb9215264e3232f132e063184a24a7b8048592.zip |
Basket modification: fix wizard update
Diffstat (limited to 'ishtar_common/wizards.py')
-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 6e4e8544f..8acf1a3ed 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -710,7 +710,9 @@ class Wizard(IshtarWizard): dct[k] = [] elif type(dct[k]) not in (list, tuple): dct[k] = [dct[k]] - setattr(obj, k, dct[k]) + getattr(obj, k).set(dct[k]) + else: + setattr(obj, k, dct[k]) if hasattr(obj, "data"): obj.data = data if hasattr(obj, "pre_save"): |