From 0eba8bd8f64a8ef122ff58d723336d272f06c673 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 19 Nov 2014 08:33:38 -0700 Subject: [PATCH] Fixed GeoSQLCompiler to pass itself correctly to column as_sql. --- 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 09a15f644a..4323798136 100644 --- a/django/contrib/gis/db/models/sql/compiler.py +++ b/django/contrib/gis/db/models/sql/compiler.py @@ -55,7 +55,7 @@ class GeoSQLCompiler(compiler.SQLCompiler): aliases.add(r) col_aliases.add(col[1]) else: - col_sql, col_params = col.as_sql(qn, self.connection) + col_sql, col_params = col.as_sql(self, self.connection) result.append(col_sql) params.extend(col_params)