[2.2.x] Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is key transform.

Regression in 6c3dfba892.

Backport of 7d1bf29977 from master
This commit is contained in:
Louise Grandjonc 2019-10-01 16:25:40 -07:00 committed by Mariusz Felisiak
parent 4f7ba25e67
commit 323467e286
5 changed files with 39 additions and 5 deletions

View file

@ -9,4 +9,7 @@ Django 1.11.26 fixes a regression in 1.11.25.
Bugfixes
========
* ...
* Fixed a crash when using a ``contains``, ``contained_by``, ``has_key``,
``has_keys``, or ``has_any_keys`` lookup on
:class:`~django.contrib.postgres.fields.JSONField`, if the right or left hand
side of an expression is a key transform (:ticket:`30826`).

View file

@ -9,4 +9,7 @@ Django 2.1.14 fixes a regression in 2.1.13.
Bugfixes
========
* ...
* Fixed a crash when using a ``contains``, ``contained_by``, ``has_key``,
``has_keys``, or ``has_any_keys`` lookup on
:class:`~django.contrib.postgres.fields.JSONField`, if the right or left hand
side of an expression is a key transform (:ticket:`30826`).

View file

@ -9,4 +9,7 @@ Django 2.2.7 fixes several bugs in 2.2.6.
Bugfixes
========
* ...
* Fixed a crash when using a ``contains``, ``contained_by``, ``has_key``,
``has_keys``, or ``has_any_keys`` lookup on
:class:`~django.contrib.postgres.fields.JSONField`, if the right or left hand
side of an expression is a key transform (:ticket:`30826`).