summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-09 11:22:37 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commit57b2ff618a0011f54b69b08654282987d5b47c6b (patch)
tree5ef8e8b66009dfcfd6ad9c219fec9fb66230adec /ishtar_common/wizards.py
parentbf6076664862f7b66062a6ab73271440ad85939a (diff)
downloadIshtar-57b2ff618a0011f54b69b08654282987d5b47c6b.tar.bz2
Ishtar-57b2ff618a0011f54b69b08654282987d5b47c6b.zip
Wizards: fix going to previous step
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 6e282a3fd..b5fe507b0 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1089,7 +1089,7 @@ class Wizard(IshtarWizard):
try:
# convert numerical step number to step name
step_number = int(self.request.POST['form_prev_step'])
- wizard_goto_step = self.get_form_list().keys()[step_number]
+ wizard_goto_step = list(self.get_form_list().keys())[step_number]
except (ValueError, IndexError):
return super(Wizard, self).post(*args, **kwargs)
self.storage.current_step = wizard_goto_step