summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 0aec7a052f..f55bcacd78 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -4205,6 +4205,10 @@ class GroupAdminTest(TestCase):
def test_group_permission_performance(self):
g = Group.objects.create(name="test_group")
+
+ # Ensure no queries are skipped due to cached content type for Group.
+ ContentType.objects.clear_cache()
+
with self.assertNumQueries(8):
response = self.client.get('/test_admin/admin/auth/group/%s/' % g.pk)
self.assertEqual(response.status_code, 200)