replace useless logout page by a redirect to the login page

This commit is contained in:
Thomas Waldmann 2013-11-01 00:25:03 +01:00
parent b5d036eb72
commit a8cc003fe1
2 changed files with 1 additions and 7 deletions

View File

@ -1,6 +0,0 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}
{% block title %}{% trans "Logged out" %}{% endblock %}
{% block content %}
{% trans "Successfully logged out!" %}
{% endblock %}

View File

@ -58,7 +58,7 @@
{% if request.user.is_staff %}
<li><a href="/admin/">Admin</a></li>
{% endif %}
<li><a href="{% url 'auth_logout' %}">Logout</a></li>
<li><a href="{% url 'auth_logout' %}?next={% url 'auth_login' %}">Logout</a></li>
</ul>
</li>
{% endif %}