summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-17 17:36:08 -0400
committerTim Graham <timograham@gmail.com>2015-08-17 17:37:07 -0400
commit75b5de8d5f73fcf52a05cd2f82125d7e27bda93b (patch)
treed2f4970e86c71b048a4345c89a64d12bbf4524ee
parent982b79b8d877a72c7be2c7cef741872c8334db35 (diff)
Refs #23266 -- Fixed ticket number reference in a queries test.
-rw-r--r--tests/queries/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 05db4a9af8..c041669ae0 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -3515,7 +3515,8 @@ class RelatedLookupTypeTests(TestCase):
# parent objects
self.assertQuerysetEqual(ObjectC.objects.exclude(childobjecta=self.oa), out_c)
- # Test for #23226
+ # QuerySet related object type checking shouldn't issue queries
+ # (the querysets aren't evaluated here, hence zero queries) (#23266).
with self.assertNumQueries(0):
ObjectB.objects.filter(objecta__in=ObjectA.objects.all())