From 12b9ef38b3ff7f5b8b24a5f42e8923fdb6db44bb Mon Sep 17 00:00:00 2001 From: Mohammadreza Eskandari <33634829+mohammadrezaesk@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:34:35 +0300 Subject: Fixed #36121 -- Allowed customizing the admin site password change form. --- tests/admin_views/tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/admin_views/tests.py') diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 7642a186c0..ec6fd58d53 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1820,6 +1820,11 @@ class AdminCustomTemplateTests(AdminViewBasicTestCase): response = user_admin.user_change_password(request, str(user.pk)) self.assertContains(response, '
') + def test_custom_password_change_form(self): + self.client.force_login(self.superuser) + response = self.client.get(reverse("admin4:password_change")) + self.assertContains(response, "Custom old password label") + def test_extended_bodyclass_template_index(self): """ The admin/index.html template uses block.super in the bodyclass block. -- cgit v1.3