diff options
author | Louise Grandjonc <louve.grandjonc@gmail.com> | 2019-10-01 16:25:40 -0700 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-11 12:01:42 +0200 |
commit | a843a9ba8da40ffae49c9ec13e7b5c41d5e40ca5 (patch) | |
tree | 36b28ba4565fbb0fd7ea257852bcde38f7ee962b /django/contrib/postgres/lookups.py | |
parent | cf2b475aaba8e854cafa99575c8082d844e5cb09 (diff) | |
download | django-a843a9ba8da40ffae49c9ec13e7b5c41d5e40ca5.tar.gz |
[1.11.x] Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is key transform.
Regression in 6c3dfba89215fc56fc27ef61829a6fff88be4abb.
Backport of 7d1bf29977bb368d7c28e7c6eb146db3b3009ae7 from master.
Diffstat (limited to 'django/contrib/postgres/lookups.py')
-rw-r--r-- | django/contrib/postgres/lookups.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/lookups.py b/django/contrib/postgres/lookups.py index 53a62eacd1..466b8cdf56 100644 --- a/django/contrib/postgres/lookups.py +++ b/django/contrib/postgres/lookups.py @@ -8,7 +8,7 @@ class PostgresSimpleLookup(Lookup): def as_sql(self, qn, connection): lhs, lhs_params = self.process_lhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection) - params = lhs_params + rhs_params + params = tuple(lhs_params) + tuple(rhs_params) return '%s %s %s' % (lhs, self.operator, rhs), params |