Skip to content

Commit

Permalink
logout fixed for django 5
Browse files Browse the repository at this point in the history
  • Loading branch information
arifogluisa authored and farridav committed Mar 23, 2024
1 parent 4135742 commit 062b504
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jazzmin/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@
<i class="fas fa-key mr-2"></i> {% trans 'Change password' %}
</a>
<div class="dropdown-divider"></div>
<a href="{% url 'admin:logout' %}" class="dropdown-item">
<i class="fas fa-users mr-2"></i> {% trans 'Log out' %}
</a>
<form id="logout-form" method="post" action="{% url 'admin:logout' %}">
{% csrf_token %}
<button type="submit" class="dropdown-item"><i class="fas fa-users mr-2"></i> {% translate 'Log out' %}</button>
</form>
{% get_user_menu user request.current_app|default:"admin" as user_menu %}
{% for link in user_menu %}
<div class="dropdown-divider"></div>
Expand Down

0 comments on commit 062b504

Please sign in to comment.