Ticket #7364: auth-caching.diff
File auth-caching.diff, 603 bytes (added by , 16 years ago) |
---|
-
views.py
8 8 from django.contrib.auth.decorators import login_required 9 9 from django.contrib.auth import REDIRECT_FIELD_NAME 10 10 from django.utils.translation import ugettext as _ 11 11 from django.views.decorators.cache import never_cache 12 @never_cache 12 13 def login(request, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME): 13 14 "Displays the login form and handles the login action." 14 15 manipulator = AuthenticationForm(request)