diff options
| author | Aric Coady <aric.coady@gmail.com> | 2015-04-27 15:23:56 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-28 10:51:27 -0400 |
| commit | 9c2d8cde77ee6edd407e92f93eacd4624290394f (patch) | |
| tree | 8d699d9ac2ab6580439c62a9b7dbcb6bd5f7f87d /tests | |
| parent | eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 (diff) | |
Fixed #24719 -- Restored the ability to use interators as queryset related object filters.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/queries/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index b4ea646fde..71c32c6bda 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -3502,6 +3502,7 @@ class RelatedLookupTypeTests(TestCase): # child objects self.assertQuerysetEqual(ObjectB.objects.filter(objecta__in=[self.coa]), []) self.assertQuerysetEqual(ObjectB.objects.filter(objecta__in=[self.poa, self.coa]).order_by('name'), out_b) + self.assertQuerysetEqual(ObjectB.objects.filter(objecta__in=iter([self.poa, self.coa])).order_by('name'), out_b) # parent objects self.assertQuerysetEqual(ObjectC.objects.exclude(childobjecta=self.oa), out_c) |
