Fix logout

main
yaemiku 2023-12-26 05:03:40 +01:00
parent fdd72d0069
commit 4cd9f78065
Signed by: podlaskizbs
GPG Key ID: ADC039636B3E4AAB
1 changed files with 4 additions and 1 deletions

View File

@ -75,5 +75,8 @@
{% if user.has_usable_password %}
<a href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a> /
{% 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 %}