mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #31651 -- Made ExpressionWrapper use grouping columns from wrapped expression.
This commit is contained in:
committed by
Mariusz Felisiak
parent
22a59c01c0
commit
df32fd42b8
@@ -863,6 +863,9 @@ class ExpressionWrapper(Expression):
|
||||
def get_source_expressions(self):
|
||||
return [self.expression]
|
||||
|
||||
def get_group_by_cols(self, alias=None):
|
||||
return self.expression.get_group_by_cols(alias=alias)
|
||||
|
||||
def as_sql(self, compiler, connection):
|
||||
return self.expression.as_sql(compiler, connection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user