mirror of
https://github.com/django/django.git
synced 2025-09-01 00:08:13 +00:00
Added missing tests for transforms usage with subquery for PostgreSQL fields
This commit is contained in:
parent
08232ef84d
commit
2a7c59cd88
3 changed files with 20 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue