app/soc/models/grading_record.py
changeset 2588 db306bbda381
parent 2571 dac91fecae38
child 2630 99239a6d9098
--- a/app/soc/models/grading_record.py	Tue Jul 07 20:17:23 2009 -0500
+++ b/app/soc/models/grading_record.py	Sat Jul 11 13:56:55 2009 +0200
@@ -57,21 +57,23 @@
 
   #: The GradingSurveyGroup to which this record belongs
   grading_survey_group = db.ReferenceProperty(
-      GradingSurveyGroup, required=True, collection_name='grading_records')
+      reference_class=GradingSurveyGroup, required=True, 
+      collection_name='grading_records')
 
   #: Mentor's GradingProjectSurveyRecord for this evaluation. Iff exists.
   mentor_record = db.ReferenceProperty(
-      GradingProjectSurveyRecord, required=False,
+      reference_class=GradingProjectSurveyRecord, required=False,
       collection_name='mentor_grading_records')
 
   #: Student's ProjectSurveyRecord for this evaluation. Iff exists.
   student_record = db.ReferenceProperty(
-      ProjectSurveyRecord, required=False,
+      reference_class=ProjectSurveyRecord, required=False,
       collection_name='student_grading_records')
 
   #: Project for this evaluation.
   project = db.ReferenceProperty(
-      StudentProject, required=True, collection_name='grading_records')
+      reference_class=StudentProject, required=True, 
+      collection_name='grading_records')
 
   #: Grade decision set for this grading record.
   #: pass: Iff the mentor_record states that the student has passed.