diff options
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 |
commit | ca5bf52968fd51e936a5dc02a178b1d9f0f7e4e0 (patch) | |
tree | 16ed19918e963f87faff1fc4fa7040bfae6f62c4 /ishtar_common/wizards.py | |
parent | ebc34fc7a5000886617f828c77b40b0dbde4f279 (diff) | |
download | Ishtar-ca5bf52968fd51e936a5dc02a178b1d9f0f7e4e0.tar.bz2 Ishtar-ca5bf52968fd51e936a5dc02a178b1d9f0f7e4e0.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.py | 6 |
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) |