diff options
| author | Kaleb Elwert <belak@coded.io> | 2015-10-01 12:52:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-02 12:29:54 -0400 |
| commit | adcf823359d7402fc1f57a2e005cea52905d897d (patch) | |
| tree | 80ed02d5c32766857b376ce42c23cc6aceeecaae /django | |
| parent | 37a5a363215d7c0360ff0a8f57856d373e8c1629 (diff) | |
Fixed #25490 -- Made the logout() view send "no-cache" headers.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/auth/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/auth/views.py b/django/contrib/auth/views.py index fc8b37823c..6362bf1daf 100644 --- a/django/contrib/auth/views.py +++ b/django/contrib/auth/views.py @@ -92,6 +92,7 @@ def login(request, template_name='registration/login.html', @deprecate_current_app +@never_cache def logout(request, next_page=None, template_name='registration/logged_out.html', redirect_field_name=REDIRECT_FIELD_NAME, |
