Removed a deprecated use of SQLCompiler as quote_name in GIS.

This commit is contained in:
Carl Meyer 2014-11-19 08:03:48 -07:00
parent cf7a2a000e
commit 84d88f5cbe
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class GeoSQLCompiler(compiler.SQLCompiler):
This routine is overridden from Query to handle customized selection of
geometry columns.
"""
qn = self
qn = self.quote_name_unless_alias
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)]