Ticket #25490: never-cache-logout.patch

File never-cache-logout.patch, 441 bytes (added by Kaleb Elwert, 9 years ago)

add @never_cache to django.contrib.auth.views.logout

  • django/contrib/auth/views.py

    diff --git a/django/contrib/auth/views.py b/django/contrib/auth/views.py
    index fc8b378..6362bf1 100644
    a b def login(request, template_name='registration/login.html',  
    9292
    9393
    9494@deprecate_current_app
     95@never_cache
    9596def logout(request, next_page=None,
    9697           template_name='registration/logged_out.html',
    9798           redirect_field_name=REDIRECT_FIELD_NAME,
Back to Top