summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/queries/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 7c306c9f15..05564a5909 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -2474,6 +2474,10 @@ class ToFieldTests(TestCase):
set(Eaten.objects.filter(food__in=Food.objects.filter(name='apple').values('eaten__meal'))),
set()
)
+ self.assertEqual(
+ set(Food.objects.filter(eaten__in=Eaten.objects.filter(meal='lunch'))),
+ {apple}
+ )
def test_reverse_in(self):
apple = Food.objects.create(name="apple")