#NEWLINE# def apply( self , query , value , alias = None ) : #NEWLINE# #INDENT# if ( value == '1' ) : #NEWLINE# #INDENT# return query . filter ( ( self . column == 'Brown' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return query . filter ( ( self . column != 'Brown' ) )