Ticket #3393: 3393.diff

File 3393.diff, 624 bytes (added by James Bennett, 17 years ago)

Simpler patch

  • django/contrib/auth/views.py

     
    1111
    1212def login(request, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME):
    1313    "Displays the login form and handles the login action."
    14     manipulator = AuthenticationForm(request)
     14    manipulator = AuthenticationForm()
    1515    redirect_to = request.REQUEST.get(redirect_field_name, '')
    1616    if request.POST:
    1717        errors = manipulator.get_validation_errors(request.POST)
Back to Top