Added additional_mentors property to StudentProject.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 14 Apr 2009 18:44:06 +0000
changeset 2183 4e036dcc79ba
parent 2182 62a6510b670d
child 2184 a1bda9afa5d0
Added additional_mentors property to StudentProject. As per request by Issue 588. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/models/student_project.py
app/soc/views/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
--- 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,