Ticket #15198: authform_clean__no_request.diff
File authform_clean__no_request.diff, 557 bytes (added by , 14 years ago) |
---|
-
django/contrib/auth/views.py
diff --git a/django/contrib/auth/views.py b/django/contrib/auth/views.py index 8d0453f..efadc5d 100644
a b def login(request, template_name='registration/login.html', 30 30 redirect_to = request.REQUEST.get(redirect_field_name, '') 31 31 32 32 if request.method == "POST": 33 form = authentication_form( data=request.POST)33 form = authentication_form(request, data=request.POST) 34 34 if form.is_valid(): 35 35 netloc = urlparse.urlparse(redirect_to)[1] 36 36