Ticket #17377: issue17377.1.patch

File issue17377.1.patch, 632 bytes (added by Gregor Müllegger, 13 years ago)

Patch. https://github.com/gregmuellegger/django/tree/issue17377

  • tests/regressiontests/admin_views/tests.py

    diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
    index f176708..e875510 100644
    a b class UserAdminTest(TestCase):  
    29822982    def test_user_permission_performance(self):
    29832983        u = User.objects.all()[0]
    29842984
    2985         with self.assertNumQueries(7):
     2985        ContentType.objects.clear_cache()
     2986        with self.assertNumQueries(8):
    29862987            response = self.client.get('/test_admin/admin/auth/user/%s/' % u.pk)
    29872988            self.assertEqual(response.status_code, 200)
    29882989
Back to Top