From 57b2ff618a0011f54b69b08654282987d5b47c6b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 9 Mar 2019 11:22:37 +0100 Subject: Wizards: fix going to previous step --- ishtar_common/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') 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 -- cgit v1.2.3