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