Set required is True for StudentProject reference in ProjectSurveyRecord.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 02 Jul 2009 15:40:37 +0200
changeset 2488 69ce84f4c1da
parent 2487 59d91f7a31e7
child 2489 7c23f90d87cd
Set required is True for StudentProject reference in ProjectSurveyRecord.
app/soc/models/project_survey_record.py
--- a/app/soc/models/project_survey_record.py	Thu Jul 02 15:38:33 2009 +0200
+++ b/app/soc/models/project_survey_record.py	Thu Jul 02 15:40:37 2009 +0200
@@ -42,6 +42,7 @@
 
   #: Reference to the Project that this record belongs to.
   project = db.ReferenceProperty(soc.models.student_project.StudentProject,
+                                 required=True,
                                  collection_name="survey_records")
 
   def getSurvey(self):