Skip to content

Commit

Permalink
Fixed #21825 -- gis compiler uses self instead of qn for as_sql()
Browse files Browse the repository at this point in the history
  • Loading branch information
akaariai committed Jan 19, 2014
1 parent 994c842 commit 1f58834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/db/models/sql/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 1f58834

Please sign in to comment.