mirror of
https://github.com/django/django.git
synced 2025-07-19 19:25:26 +00:00
Fixed #23266 -- Prevented queries caused by type checking lookup values
Small modifications done by committer.
This commit is contained in:
parent
f0b358880a
commit
cdfdcf4b70
2 changed files with 17 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue