Ticket #7364: auth-caching.diff

File auth-caching.diff, 603 bytes (added by clong@…, 16 years ago)
  • views.py

     
    88from django.contrib.auth.decorators import login_required
    99from django.contrib.auth import REDIRECT_FIELD_NAME
    1010from django.utils.translation import ugettext as _
    11 
     11from django.views.decorators.cache import never_cache
     12@never_cache
    1213def login(request, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME):
    1314    "Displays the login form and handles the login action."
    1415    manipulator = AuthenticationForm(request)
Back to Top