1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

[4.2.x] Fixed #34512 -- Restored breadcrumbs on admin app index view.

Thanks Adam (ataylor32) for the report.

Regression in 872b61193b.
Backport of 9440f6ba41 from main
This commit is contained in:
Mariusz Felisiak
2023-04-26 08:36:56 +02:00
parent 9ab8067229
commit fffbf85080
3 changed files with 17 additions and 8 deletions

View File

@@ -23,3 +23,7 @@ class AdminBreadcrumbsTests(TestCase):
def test_breadcrumbs_present(self):
response = self.client.get(reverse("admin:auth_user_add"))
self.assertContains(response, '<nav aria-label="Breadcrumbs">')
response = self.client.get(
reverse("admin:app_list", kwargs={"app_label": "auth"})
)
self.assertContains(response, '<nav aria-label="Breadcrumbs">')