def __init__(self, field, operator, value, quote_field=True):
if not isinstance(operator, BaseWhereOperator):<EOL><INDENT>raise StatementException(<EOL>"<STR_LIT>".format(BaseWhereOperator, type(operator))<EOL>)<EOL><DEDENT>super(WhereClause, self).__init__(field, value)<EOL>self.operator = operator<EOL>self.query_value = self.value if isinstance(self.value, QueryValue) else QueryValue(self.value)<EOL>self.quote_field = quote_field<EOL>
:param field:
:param operator:
:param value:
:param quote_field: hack to get the token function rendering properly
:return: