diff options
| author | Carl Meyer <carl@oddbird.net> | 2014-11-19 08:33:38 -0700 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2014-11-19 08:33:38 -0700 |
| commit | 0eba8bd8f64a8ef122ff58d723336d272f06c673 (patch) | |
| tree | d6402fe88506c8f65532aa63c5a87b68cb8ea287 | |
| parent | 84d88f5cbe92efbaa37dc0cda633083a25143dfd (diff) | |
Fixed GeoSQLCompiler to pass itself correctly to column as_sql.
| -rw-r--r-- | django/contrib/gis/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
