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

Fixed #34909 -- Associated links in admin navigation sidebar with row descriptions.

This adds aria-describedby attribute to the models' links in the admin
navigation sidebar.

Thanks Thibaud Colas for the review.

Co-authored-by: Dara Silvera <dsilvera@octobot.io>
This commit is contained in:
Eliana Rosselli
2023-10-20 09:42:30 -04:00
committed by Mariusz Felisiak
parent 5b885106a7
commit c83c639ba0
3 changed files with 29 additions and 5 deletions

View File

@@ -111,9 +111,10 @@ class AdminSidebarTests(TestCase):
self.assertContains(response, '<tr class="model-héllo current-model">')
self.assertContains(
response,
'<th scope="row">'
'<th scope="row" id="admin_views-héllo">'
'<a href="/test_sidebar/admin/admin_views/h%C3%A9llo/" aria-current="page">'
"Héllos</a></th>",
html=True,
)