Fix logout
parent
fdd72d0069
commit
4cd9f78065
|
|
@ -75,5 +75,8 @@
|
||||||
{% if user.has_usable_password %}
|
{% if user.has_usable_password %}
|
||||||
<a href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a> /
|
<a href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a> /
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a>
|
<form>
|
||||||
|
{% csrf_token %}
|
||||||
|
<button formmethod="{% url 'admin:logout' %}" formmethod="post" type="submit">{% translate 'Log out' %}</button>
|
||||||
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue