summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2014-01-15 00:34:44 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2014-01-15 00:34:44 +0100
commitcb8cb1f71c931caaa117496c8488255ef34fe9cc (patch)
tree0028c0d8a1a0509680528d3f5f0be539ea4e67de
parent61dc83b0d760501e00b533ec7f8eadcebaf9d738 (diff)
downloadIshtar-cb8cb1f71c931caaa117496c8488255ef34fe9cc.tar.bz2
Ishtar-cb8cb1f71c931caaa117496c8488255ef34fe9cc.zip
Fix direct modification by URL ("Modify" button) (refs #1615)
Change nature of data initialization at first step
-rw-r--r--archaeological_operations/wizards.py2
-rw-r--r--ishtar_common/wizards.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index d816cf9aa..6d25812eb 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -323,7 +323,7 @@ class OperationAdministrativeActWizard(OperationWizard):
r = r[k]
else:
break
- if level == len(keys): # the whole tree as been traversed
+ if level == len(keys): # the whole list as been traversed
# redirect to the generated doc
dct['redirect'] = reverse('generatedoc-administrativeactop',
args=[admact.pk, r[0]])
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index d29a8458f..d506c8552 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -620,7 +620,7 @@ class Wizard(NamedUrlWizardView):
storage.reset()
data = storage.get_step_data(form_key)
if not data:
- data = {}#MultiValueDict()
+ data = MultiValueDict()
key = key if key.startswith(form_key) else form_key + '-' + key
data[key] = value
storage.set_step_data(form_key, data)