summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-08 13:18:44 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-08 13:53:26 +0100
commit4135c16fc28925ba8a42006d1e2849829b7e4ddd (patch)
tree5ceaff0b2e85bb35944a697fff2d3d2e76e9546d /ishtar_common/wizards.py
parent5ec494564251e27e3f802e6c1aec3c6aa1890488 (diff)
downloadIshtar-4135c16fc28925ba8a42006d1e2849829b7e4ddd.tar.bz2
Ishtar-4135c16fc28925ba8a42006d1e2849829b7e4ddd.zip
Site: quick add operation action (refs #4450)
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index c2383e2de..fa14d9827 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1334,7 +1334,10 @@ class Wizard(IshtarWizard):
if not data:
data = MultiValueDict()
key = key if key.startswith(form_key) else form_key + "-" + key
- data[key] = value
+ if isinstance(value, list):
+ data.setlist(key, value)
+ else:
+ data[key] = value
storage.set_step_data(form_key, data)
@classmethod