app/soc/views/models/student_project.py
changeset 2974 93ec6da82bc5
parent 2970 605e3c3a55e9
equal deleted inserted replaced
2973:ba3f2522e8df 2974:93ec6da82bc5
   537       fields = {'link_id': get_dict['remove'],
   537       fields = {'link_id': get_dict['remove'],
   538                 'scope': entity.scope}
   538                 'scope': entity.scope}
   539       mentor = mentor_logic.logic.getForFields(fields, unique=True)
   539       mentor = mentor_logic.logic.getForFields(fields, unique=True)
   540 
   540 
   541       additional_mentors = entity.additional_mentors
   541       additional_mentors = entity.additional_mentors
   542       # pylint: disable-  msg=E1103
   542       # pylint: disable-msg=E1103
   543       if additional_mentors and mentor.key() in additional_mentors:
   543       if additional_mentors and mentor.key() in additional_mentors:
   544         # remove the mentor from the additional mentors list
   544         # remove the mentor from the additional mentors list
   545         additional_mentors.remove(mentor.key())
   545         additional_mentors.remove(mentor.key())
   546         fields = {'additional_mentors': additional_mentors}
   546         fields = {'additional_mentors': additional_mentors}
   547         project_logic.updateEntityProperties(entity, fields)
   547         project_logic.updateEntityProperties(entity, fields)