# HG changeset patch # User Lennard de Rijk # Date 1239734646 0 # Node ID 4e036dcc79ba298b7657f68dde54cdf685c9ff22 # Parent 62a6510b670d6352504eb204e481909cc41140da Added additional_mentors property to StudentProject. As per request by Issue 588. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 62a6510b670d -r 4e036dcc79ba app/soc/models/student_project.py --- a/app/soc/models/student_project.py Tue Apr 14 18:42:27 2009 +0000 +++ b/app/soc/models/student_project.py Tue Apr 14 18:44:06 2009 +0000 @@ -70,6 +70,9 @@ required=True, collection_name='student_projects') + #: A property containing a list of additional Mentors for this project + additional_mentors = db.ListProperty(item_type=db.Key, default=[]) + #: The status of this project #: accepted: This project has been accepted into the program #: mid_term_passed: This project has passed the midterm evaluation diff -r 62a6510b670d -r 4e036dcc79ba app/soc/views/models/student_project.py --- a/app/soc/views/models/student_project.py Tue Apr 14 18:42:27 2009 +0000 +++ b/app/soc/views/models/student_project.py Tue Apr 14 18:44:06 2009 +0000 @@ -91,7 +91,8 @@ new_params['no_create_with_key_fields'] = True new_params['extra_dynaexclude'] = ['program', 'status', 'link_id', - 'mentor', 'student'] + 'mentor', 'additional_mentors', + 'student'] new_params['create_extra_dynaproperties'] = { 'scope_path': forms.CharField(widget=forms.HiddenInput,