From 2a7c59cd885b4c9f0584015c34c17c9ebca6d417 Mon Sep 17 00:00:00 2001 From: Andriy Sokolovskiy Date: Thu, 4 Jun 2015 16:15:25 +0100 Subject: Added missing tests for transforms usage with subquery for PostgreSQL fields --- tests/postgres_tests/test_json.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/postgres_tests/test_json.py') diff --git a/tests/postgres_tests/test_json.py b/tests/postgres_tests/test_json.py index 9637d47ec6..b4f0dd4ecf 100644 --- a/tests/postgres_tests/test_json.py +++ b/tests/postgres_tests/test_json.py @@ -204,6 +204,12 @@ class TestQuerying(TestCase): [self.objs[7], self.objs[8]] ) + def test_usage_in_subquery(self): + self.assertSequenceEqual( + JSONModel.objects.filter(id__in=JSONModel.objects.filter(field__c=1)), + self.objs[7:9] + ) + @skipUnlessPG94 class TestSerialization(TestCase): -- cgit v1.2.1