Fixed #36121 -- Allowed customizing the admin site password change form.

This commit is contained in:
Mohammadreza Eskandari 2025-01-21 12:34:35 +03:00 committed by Sarah Boyce
parent c6ace896a2
commit 12b9ef38b3
6 changed files with 24 additions and 3 deletions

View file

@ -18,6 +18,7 @@ class Admin2(admin.AdminSite):
login_template = "custom_admin/login.html"
logout_template = "custom_admin/logout.html"
index_template = ["custom_admin/index.html"] # a list, to test fix for #18697
password_change_form = forms.CustomAdminPasswordChangeForm
password_change_template = "custom_admin/password_change_form.html"
password_change_done_template = "custom_admin/password_change_done.html"