[PATCH 7/9] ui: Redirect to '/' after logout

Stephen Finucane stephen.finucane at intel.com
Thu Mar 31 08:04:32 AEDT 2016


It's already obvious that the user has logged out, so don't bother
displaying a message saying as much. Redirect to the home page instead.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/templates/patchwork/logout.html | 8 --------
 patchwork/urls.py                         | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
 delete mode 100644 patchwork/templates/patchwork/logout.html

diff --git a/patchwork/templates/patchwork/logout.html b/patchwork/templates/patchwork/logout.html
deleted file mode 100644
index 228b342..0000000
--- a/patchwork/templates/patchwork/logout.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Sign out{% endblock %}
-{% block heading %}Sign out{% endblock %}
-
-{% block body %}
-<p>Signed out</p>
-{% endblock %}
diff --git a/patchwork/urls.py b/patchwork/urls.py
index 87369ce..f3fdc5b 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -92,7 +92,7 @@ urlpatterns = [
         {'template_name': 'patchwork/login.html'},
         name='auth_login'),
     url(r'^user/logout/$', auth_views.logout,
-        {'template_name': 'patchwork/logout.html'},
+        {'next_page': '/'},
         name='auth_logout'),
 
     # registration
-- 
2.0.0



More information about the Patchwork mailing list