From 84d88f5cbe92efbaa37dc0cda633083a25143dfd Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 19 Nov 2014 08:03:48 -0700 Subject: [PATCH] Removed a deprecated use of SQLCompiler as quote_name in GIS. --- django/contrib/gis/db/models/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/db/models/sql/compiler.py b/django/contrib/gis/db/models/sql/compiler.py index 915f33fc2b8..09a15f644af 100644 --- a/django/contrib/gis/db/models/sql/compiler.py +++ b/django/contrib/gis/db/models/sql/compiler.py @@ -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)]