Django

Code

Ticket #3393: 3393.diff

File 3393.diff, 0.6 kB (added by ubernostrum, 1 year ago)

Simpler patch

  • django/contrib/auth/views.py

    old new  
    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)