Ticket #17296: 17296.patch

File 17296.patch, 588 bytes (added by Aymeric Augustin, 13 years ago)
  • django/contrib/auth/views.py

     
    2929    """
    3030    Displays the login form and handles the login action.
    3131    """
    32     redirect_to = request.REQUEST.get(redirect_field_name, '')
     32    redirect_to = (request.REQUEST.get(redirect_field_name, '')
     33                  or extra_context.get(redirect_field_name, ''))
    3334
    3435    if request.method == "POST":
    3536        form = authentication_form(data=request.POST)
Back to Top