mirror of
https://github.com/django/django.git
synced 2025-08-27 05:54:28 +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
|
@ -228,6 +228,14 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
[instance]
|
||||
)
|
||||
|
||||
def test_usage_in_subquery(self):
|
||||
self.assertSequenceEqual(
|
||||
NullableIntegerArrayModel.objects.filter(
|
||||
id__in=NullableIntegerArrayModel.objects.filter(field__len=3)
|
||||
),
|
||||
[self.objs[3]]
|
||||
)
|
||||
|
||||
|
||||
class TestChecks(PostgreSQLTestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue