1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #35505 -- Added extrabody block to admin/base.html.

This commit is contained in:
stefan.ivic
2024-06-08 15:44:17 +02:00
committed by Sarah Boyce
parent a0c44d4e23
commit ce1ad98565
5 changed files with 36 additions and 1 deletions

View File

@@ -1746,6 +1746,10 @@ class AdminCustomTemplateTests(AdminViewBasicTestCase):
response = self.client.get(reverse("admin:admin_views_section_add"))
self.assertContains(response, "bodyclass_consistency_check ")
def test_extended_extrabody(self):
response = self.client.get(reverse("admin:admin_views_section_add"))
self.assertContains(response, "extrabody_check\n</body>")
def test_change_password_template(self):
user = User.objects.get(username="super")
response = self.client.get(