Replaced an antiquated pattern.

Thanks Lennart Regebro for pointing it out.
This commit is contained in:
Aymeric Augustin
2013-05-17 16:33:36 +02:00
parent 29e2746e78
commit 87d798a4d4

View File

@@ -17,7 +17,7 @@ from django.contrib.formtools.wizard.views import (WizardView,
class DummyRequest(http.HttpRequest):
def __init__(self, POST=None):
super(DummyRequest, self).__init__()
self.method = POST and "POST" or "GET"
self.method = "POST" if POST else "GET"
if POST is not None:
self.POST.update(POST)
self.session = {}