mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #36121 -- Allowed customizing the admin site password change form.
This commit is contained in:
committed by
Sarah Boyce
parent
c6ace896a2
commit
12b9ef38b3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user