#NEWLINE# def flush_cached_instance( sender , instance , **kwargs ) : #NEWLINE# #INDENT# '\n    Flush the idmapper cache only for a given instance.\n\n    ' #NEWLINE# if ( not hasattr ( instance , 'flush_cached_instance' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# sender . flush_cached_instance ( instance , force = True )