def _update_new_linked_model(self, internal, linked_mdl_ins, link):
<EOL>if not internal:<EOL><INDENT>for lnk in linked_mdl_ins.get_links():<EOL><INDENT>mdl = lnk['<STR_LIT>']<EOL>if not isinstance(self, mdl) or lnk['<STR_LIT>'] != link['<STR_LIT>']:<EOL><INDENT>continue<EOL><DEDENT>local_field_name = lnk['<STR_LIT>']<EOL>remote_field_name = un_camel(mdl.__name__)<EOL>if not link['<STR_LIT>']:<EOL><INDENT>if '<STR_LIT:.>' in local_field_name:<EOL><INDENT>local_field_name, remote_field_name = local_field_name.split('<STR_LIT:.>')<EOL><DEDENT>remote_set = getattr(linked_mdl_ins, local_field_name)<EOL>if remote_set._TYPE == '<STR_LIT>' and self not in remote_set:<EOL><INDENT>remote_set(**{remote_field_name: self._root_node})<EOL>if linked_mdl_ins._exists is False:<EOL><INDENT>raise ObjectDoesNotExist('<STR_LIT>' % (<EOL>linked_mdl_ins.__class__.__name__,<EOL>remote_field_name,<EOL>linked_mdl_ins.key,<EOL>))<EOL><DEDENT>linked_mdl_ins.save(internal=True)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>linked_mdl_ins.setattr(remote_field_name, self._root_node)<EOL>if linked_mdl_ins._exists is False:<EOL><INDENT>raise ObjectDoesNotExist('<STR_LIT>' % (<EOL>linked_mdl_ins.__class__.__name__,<EOL>remote_field_name,<EOL>linked_mdl_ins.key,<EOL>))<EOL><DEDENT>linked_mdl_ins.save(internal=True)<EOL><DEDENT><DEDENT><DEDENT>
Iterates through linked_models of given model instance to match it's
"reverse" with given link's "field" values.