Ticket #6581: 6581.django.contrib.auth.views.diff

File 6581.django.contrib.auth.views.diff, 623 bytes (added by Pete Crosier, 17 years ago)

Added request to redirect_to_login

  • django/contrib/auth/views.py

     
    5656        login_url = settings.LOGIN_URL
    5757    return logout(request, login_url)
    5858
    59 def redirect_to_login(next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):
     59def redirect_to_login(request, next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):
    6060    "Redirects the user to the login page, passing the given 'next' page"
    6161    if not login_url:
    6262        from django.conf import settings
Back to Top