Fixed GeoSQLCompiler to pass itself correctly to column as_sql.

This commit is contained in:
Carl Meyer 2014-11-19 08:33:38 -07:00
parent 84d88f5cbe
commit 0eba8bd8f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)