summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 534671972..f0302d70f 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -518,10 +518,8 @@ class Wizard(NamedUrlWizardView):
- validate and end: nextstep = last step
"""
request = self.request
- if (request.POST.has_key('formset_modify') \
- and request.POST['formset_modify']) \
- or (request.POST.has_key('formset_add') \
- and request.POST['formset_add']) \
+ if request.POST.get('formset_modify') \
+ or request.POST.get('formset_add') \
or [key for key in request.POST.keys()
if key.endswith('DELETE') and request.POST[key]]:
return self.render(form)