

def as_sql(self, compiler, connection):
    (lhs_sql, sql_params) = self.process_lhs(compiler, connection)
    (rhs_sql, rhs_params) = self.process_rhs(compiler, connection)
    sql_params.extend(rhs_params)
    template_params = {
        'lhs': lhs_sql,
        'rhs': rhs_sql,
        'value': '%s',
    }
    template_params.update(self.template_params)
    rhs_op = self.get_rhs_op(connection, rhs_sql)
    return rhs_op.as_sql(connection, self, template_params, sql_params)

dataset/ETHPy150Open django/django/django/contrib/gis/db/models/lookups.py GISLookup.as_sql/original