From cd413bd78ac65bd4282d26cc279bfd1bd4de707d Mon Sep 17 00:00:00 2001 From: Howard Cox Date: Fri, 2 Jun 2023 11:54:07 +0100 Subject: Fixed #34621 -- Made admin site header render in
tag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was problematic for screen reader users because they use headings to navigate. Having two

is confusing, and the one in the header wasn’t particularly helpful since it’s the same on all pages. --- tests/admin_docs/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/admin_docs') diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index 4fe51f3d02..7969f6cd42 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -27,7 +27,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): self.assertContains(response, "

Documentation

", html=True) self.assertContains( response, - '

Django administration

', + '', ) self.client.logout() response = self.client.get(reverse("django-admindocs-docroot"), follow=True) @@ -153,7 +153,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): ) self.assertContains( response, - '

Django administration

', + '', ) finally: utils.docutils_is_available = True -- cgit v1.3