Django

Code

Changeset 8383

Show
Ignore:
Timestamp:
08/15/08 12:10:14 (3 months ago)
Author:
gwilson
Message:

Fixed #7364 -- Never cache the contrib.auth login view.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/views.py

    r8334 r8383  
    1515from django.utils.translation import ugettext as _ 
    1616from django.contrib.auth.models import User 
     17from django.views.decorators.cache import never_cache 
    1718import re 
    1819 
     
    4445        'site_name': current_site.name, 
    4546    }, context_instance=RequestContext(request)) 
     47login = never_cache(login) 
    4648 
    4749def logout(request, next_page=None, template_name='registration/logged_out.html'):