Use elif to prevent one test
This commit is contained in:
1 parent
f367497e02
commit
d2e98c40b8
1 file changed
+1
-1
@@ -255,7 +255,7 @@ class Wizard(object):
|
||||
res['fields'] = fields
|
||||
res['arch'] = arch
|
||||
res['state'] = button_list
|
||||
if result_def['type'] == 'choice':
|
||||
elif result_def['type'] == 'choice':
|
||||
next_state = getattr(self, result_def['next_state'])(cursor, user,
|
||||
data, context)
|
||||
if next_state == 'end':
|
||||
|
||||
Reference in new issue
Block a user