Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #21825 -- gis compiler uses self instead of qn for as_sql()

  • Loading branch information...
commit 1f58834ac6858aa33629a27cb252de00141e76b0 1 parent 994c842
@akaariai akaariai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/db/models/sql/compiler.py
View
2  django/contrib/gis/db/models/sql/compiler.py
@@ -26,7 +26,7 @@ def get_columns(self, with_aliases=False):
This routine is overridden from Query to handle customized selection of
geometry columns.
"""
- qn = self.quote_name_unless_alias
+ qn = self
qn2 = self.connection.ops.quote_name
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
for alias, col in six.iteritems(self.query.extra_select)]
Please sign in to comment.
Something went wrong with that request. Please try again.