summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-15 19:38:12 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-15 19:40:31 +0200
commit2a996a4a19ba0a914ae0313ef905397ef4686ed2 (patch)
tree482345767d73c1959c2413d9f29a18de31009305
parent968b9af9b7f7e49af17fc82de5a2de9a91b86e44 (diff)
[2.1.x] Fixed test_json.TestQuerying.test_key_transform_expression() on Python 3.5.
Backport of 6624a3de286ccebf2dafba5a3e9b5ee91ae43cf9 from stable/2.2.x
-rw-r--r--tests/postgres_tests/test_json.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_json.py b/tests/postgres_tests/test_json.py
index 01215aa954..2938150af3 100644
--- a/tests/postgres_tests/test_json.py
+++ b/tests/postgres_tests/test_json.py
@@ -168,6 +168,7 @@ class TestQuerying(PostgreSQLTestCase):
self.assertSequenceEqual(
JSONModel.objects.filter(field__d__0__isnull=False).annotate(
key=KeyTransform('d', 'field'),
+ ).annotate(
chain=KeyTransform('0', 'key'),
expr=KeyTransform('0', Cast('key', JSONField())),
).filter(chain=F('expr')),