diff options
| author | Anubhav Joshi <anubhav9042@gmail.com> | 2014-08-10 18:23:37 +0530 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-08-11 09:51:57 +0300 |
| commit | cdfdcf4b70bebfc68871df885387790c6afbc23c (patch) | |
| tree | eb73c2932c8131cc0abc24155253f6a91839d7df /tests | |
| parent | f0b358880a6825d667c037757caac470bc526a1f (diff) | |
Fixed #23266 -- Prevented queries caused by type checking lookup values
Small modifications done by committer.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/queries/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index 380d64b8f9..e7dd7fab74 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -3461,6 +3461,10 @@ class RelatedLookupTypeTests(TestCase): # parent objects self.assertQuerysetEqual(ObjectC.objects.exclude(childobjecta=self.oa), out_c) + # Test for #23226 + with self.assertNumQueries(0): + ObjectB.objects.filter(objecta__in=ObjectA.objects.all()) + class Ticket14056Tests(TestCase): def test_ticket_14056(self): |
