summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-14 11:09:49 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-14 20:56:04 +0200
commitbbd55e58639c33b4c5adff5f41b78deffc915c11 (patch)
tree897a15e97cb37f845cc72f5a7e95393f03318456 /django
parent7e1e198494d4fc72cf6e153f9d24fe2493c17dc1 (diff)
Refs #32096 -- Fixed ExpressionWrapper crash with JSONField key transforms.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Simon Charette and Igor Jerosimić for the report.
Diffstat (limited to 'django')
-rw-r--r--django/db/models/expressions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index 0d304b6ec6..43b8920d95 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -920,7 +920,7 @@ class ExpressionWrapper(Expression):
return expression.get_group_by_cols(alias=alias)
def as_sql(self, compiler, connection):
- return self.expression.as_sql(compiler, connection)
+ return compiler.compile(self.expression)
def __repr__(self):
return "{}({})".format(self.__class__.__name__, self.expression)