From 5e07e761272dd00cb460ca4d7887c569606dca2a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 7 Nov 2022 18:08:36 +0100 Subject: Basket modification: fix wizard update --- CHANGES.md | 7 ++++++- ishtar_common/version.py | 4 ++-- ishtar_common/wizards.py | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 87d8e869b..dcfcb1fac 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,13 +1,18 @@ --- title: Ishtar changelog -date: 2022-10-17 +date: 2022-11-27 --- + +v4.0.25 - 2022-11-07 +-------------------- + ### Features ### - Geodata: display first item associated as a name when no name is provided ### Bug fix ### - Geodata import: fix total number evaluation on imports +- Basket modification: fix wizard update v4.0.24 - 2022-10-27 diff --git a/ishtar_common/version.py b/ishtar_common/version.py index ad8f491b9..f7f9d0b79 100644 --- a/ishtar_common/version.py +++ b/ishtar_common/version.py @@ -1,5 +1,5 @@ -# 4.0.24 -VERSION = (4, 0, 24) +# 4.0.25 +VERSION = (4, 0, 25) def get_version(): 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"): -- cgit v1.2.3