From 443a7464e74156daa22d99cd65387ba62fc70af5 Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Thu, 12 Mar 2020 12:10:57 +0100 Subject: [PATCH] views: do not pass logout template on logout redirect (#40681) --- bijoe/templates/bijoe/logged_out.html | 10 ---------- bijoe/views.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 bijoe/templates/bijoe/logged_out.html diff --git a/bijoe/templates/bijoe/logged_out.html b/bijoe/templates/bijoe/logged_out.html deleted file mode 100644 index afde2b9..0000000 --- a/bijoe/templates/bijoe/logged_out.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "bijoe/base.html" %} - -{% block content %} -

- You have been logged out -

-

- Continue to homepage -

-{% endblock %} diff --git a/bijoe/views.py b/bijoe/views.py index 6aaddcc..a811436 100644 --- a/bijoe/views.py +++ b/bijoe/views.py @@ -113,4 +113,4 @@ def logout(request, next_page=None): next_page = resolve_url(next_page) else: next_page = '/' - return HttpResponseRedirect(next_page, template_name='bijoe/logged_out.html') + return HttpResponseRedirect(next_page)