def as_sql(self, qn, connection=None):
if self.bit:<EOL><INDENT>return ("<STR_LIT>" % (qn(self.table_alias), qn(self.column), self.bit.mask),<EOL>[])<EOL><DEDENT>return ("<STR_LIT>" % (qn(self.table_alias), qn(self.column), self.bit.mask),<EOL>[])<EOL>
Create the proper SQL fragment. This inserts something like
"(T0.flags & value) != 0".

This will be called by Where.as_sql()