#NEWLINE# def apply( self , query , value ) : #NEWLINE# #INDENT# ( query , field ) = get_field_setup_query ( query , self . model , self . column_name ) #NEWLINE# rel_obj = self . datamodel . get_related_obj ( self . column_name , value ) #NEWLINE# return query . filter ( ( field == rel_obj ) )