From 65da6b2ae48f346d30c0322733e347f2fd359645 Mon Sep 17 00:00:00 2001 From: Cheuk Ting Ho Date: Thu, 1 Jun 2023 13:37:25 +0100 Subject: [PATCH] Fixed #34617 -- Enabled user zooming on mobile devices in the admin. --- django/contrib/admin/templates/admin/base.html | 2 +- tests/admin_views/tests.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 1167c03dfa..479b6e743a 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -16,7 +16,7 @@ {% if LANGUAGE_BIDI %}{% endif %} {% block extrahead %}{% endblock %} {% block responsive %} - + {% if LANGUAGE_BIDI %}{% endif %} {% endblock %} diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 0a252bac4f..4db06ca84a 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1505,6 +1505,13 @@ class AdminViewBasicTest(AdminViewBasicTestCase): response, '
' ) + def test_enable_zooming_on_mobile(self): + response = self.client.get(reverse("admin:index")) + self.assertContains( + response, + '', + ) + @override_settings( AUTH_PASSWORD_VALIDATORS=[