Added additional_mentors property to StudentProject.
As per request by Issue 588.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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
--- 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,