diff options
| author | Mohammadreza Eskandari <33634829+mohammadrezaesk@users.noreply.github.com> | 2025-01-21 12:34:35 +0300 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-30 11:19:05 +0000 |
| commit | 12b9ef38b3ff7f5b8b24a5f42e8923fdb6db44bb (patch) | |
| tree | 1ed6fbd58e02bee0c86b5d1fc9cbc98e16f5196f /tests/admin_views/tests.py | |
| parent | c6ace896a2da73356f7c9a655bbe32a0e3ce0435 (diff) | |
Fixed #36121 -- Allowed customizing the admin site password change form.
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
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, '<div class="help">') + 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. |
