Ticket #6581: 6581.django.contrib.auth.views.diff
File 6581.django.contrib.auth.views.diff, 623 bytes (added by , 17 years ago) |
---|
-
django/contrib/auth/views.py
56 56 login_url = settings.LOGIN_URL 57 57 return logout(request, login_url) 58 58 59 def redirect_to_login( next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):59 def redirect_to_login(request, next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME): 60 60 "Redirects the user to the login page, passing the given 'next' page" 61 61 if not login_url: 62 62 from django.conf import settings