summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorLouise Grandjonc <louve.grandjonc@gmail.com>2019-10-01 16:25:40 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-11 11:57:16 +0200
commit522af9d6737550ef035a173c08a8276028b68917 (patch)
treee7ec5df9d1f8253ee1667c1d6ade10be366e361d /django
parent608b787135da9d2366af7a095ec388ba0eb4690d (diff)
[2.1.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')
-rw-r--r--django/contrib/postgres/lookups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/lookups.py b/django/contrib/postgres/lookups.py
index c2b3d2b569..ac8d3bc522 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