#NEWLINE# def to_instance( self , instance ) : #NEWLINE# #INDENT# to_identifier = registry . get_identifier ( self ) #NEWLINE# return self . filter ( to_identifier = to_identifier , to_object_id = instance . pk )