Kaydet (Commit) 84d88f5c authored tarafından Carl Meyer's avatar Carl Meyer

Removed a deprecated use of SQLCompiler as quote_name in GIS.

üst cf7a2a00
...@@ -20,7 +20,7 @@ class GeoSQLCompiler(compiler.SQLCompiler): ...@@ -20,7 +20,7 @@ class GeoSQLCompiler(compiler.SQLCompiler):
This routine is overridden from Query to handle customized selection of This routine is overridden from Query to handle customized selection of
geometry columns. geometry columns.
""" """
qn = self qn = self.quote_name_unless_alias
qn2 = self.connection.ops.quote_name qn2 = self.connection.ops.quote_name
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias)) result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
for alias, col in six.iteritems(self.query.extra_select)] for alias, col in six.iteritems(self.query.extra_select)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment