Skip to content

Commit

Permalink
[2.2.x] Fixed test_json.TestQuerying.test_key_transform_expression() …
Browse files Browse the repository at this point in the history
…on Python 3.5.
  • Loading branch information
felixxm committed Aug 15, 2019
1 parent c2732e6 commit 6624a3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/postgres_tests/test_json.py
Expand Up @@ -190,6 +190,7 @@ def test_key_transform_expression(self):
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')),
Expand Down

0 comments on commit 6624a3d

Please sign in to comment.