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. --- docs/ref/contrib/admin/index.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index d3c3884329..f8a8153a49 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2848,9 +2848,13 @@ Templates can override or extend base admin templates as described in .. attribute:: AdminSite.site_header - The text to put at the top of each admin page, as an ``

`` (a string). + The text to put at the top of each admin page, as a ``
`` (a string). By default, this is "Django administration". + .. versionchanged:: 5.0 + + In older versions, ``site_header`` was using an ``

`` tag. + .. attribute:: AdminSite.site_title The text to put at the end of each admin page's ```` (a string). By -- cgit v1.3