This commit is contained in:
Bartosz Wiśniewski 2023-03-01 17:53:18 +05:30 committed by GitHub
commit 501d340516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -388,7 +388,7 @@ class QuerySet(object):
sql += '\nWHERE ' + self.conditions_as_sql(prewhere=False)
if self._grouping_fields:
sql += '\nGROUP BY %s' % comma_join('`%s`' % field for field in self._grouping_fields)
sql += '\nGROUP BY %s' % comma_join('%s' % field for field in self._grouping_fields)
if self._grouping_with_totals:
sql += ' WITH TOTALS'