From 062b5044bd29f01231e06869218ce1157592be85 Mon Sep 17 00:00:00 2001 From: Isa Arifoglu Date: Sat, 23 Mar 2024 01:09:12 +0400 Subject: [PATCH] logout fixed for django 5 --- jazzmin/templates/admin/base.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jazzmin/templates/admin/base.html b/jazzmin/templates/admin/base.html index ed09bd0d..85ff041b 100644 --- a/jazzmin/templates/admin/base.html +++ b/jazzmin/templates/admin/base.html @@ -160,9 +160,10 @@ {% trans 'Change password' %} - - {% trans 'Log out' %} - +
+ {% csrf_token %} + +
{% get_user_menu user request.current_app|default:"admin" as user_menu %} {% for link in user_menu %}