mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #31651 -- Made ExpressionWrapper use grouping columns from wrapped expression.
This commit is contained in:
parent
22a59c01c0
commit
df32fd42b8
2 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue