mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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
|
@ -132,6 +132,12 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
self.objs[:2]
|
||||
)
|
||||
|
||||
def test_usage_in_subquery(self):
|
||||
self.assertSequenceEqual(
|
||||
HStoreModel.objects.filter(id__in=HStoreModel.objects.filter(field__a='b')),
|
||||
self.objs[:2]
|
||||
)
|
||||
|
||||
|
||||
class TestSerialization(PostgreSQLTestCase):
|
||||
test_data = '[{"fields": {"field": "{\\"a\\": \\"b\\"}"}, "model": "postgres_tests.hstoremodel", "pk": null}]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue