summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 01:36:29 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 01:37:17 +0100
commit6f6d364a4aa080ff068c6f71abb012e382b7a610 (patch)
tree16ed19918e963f87faff1fc4fa7040bfae6f62c4 /ishtar_common/wizards.py
parente9d6693c6739bad822fd62873a0afd85d248729f (diff)
downloadIshtar-6f6d364a4aa080ff068c6f71abb012e382b7a610.tar.bz2
Ishtar-6f6d364a4aa080ff068c6f71abb012e382b7a610.zip
Operation: easily add all parcel related to an archaeological file (refs #1444)
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)