mirror of
https://github.com/django/django.git
synced 2025-08-26 21:44:31 +00:00
Fixed #23889 -- Added more usage of quote_name_unless_alias() to avoid deprecation warnings.
This commit is contained in:
parent
c7087bc777
commit
d4ea4eea79
2 changed files with 3 additions and 2 deletions
|
@ -521,7 +521,7 @@ class Ref(ExpressionNode):
|
|||
return self
|
||||
|
||||
def as_sql(self, compiler, connection):
|
||||
return "%s" % compiler(self.refs), []
|
||||
return "%s" % compiler.quote_name_unless_alias(self.refs), []
|
||||
|
||||
def get_group_by_cols(self):
|
||||
return [(None, self.refs)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue