#NEWLINE# def matches_filter( self , model , field_name , lookup_type , value ) : #NEWLINE# #INDENT# return ( ( value . model == model ) and ( lookup_type == ( '%sregex' % ( 'i' if self . is_icase ( ) else '' ) ) ) and ( value == self . lookup_def . pattern ) and ( field_name == self . field_name ) )