Made the locked property non-required.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 12:48:05 +0200
changeset 2630 99239a6d9098
parent 2629 0f25d9d27556
child 2631 f0d3d24a609b
Made the locked property non-required. This makes it easier to generate a Form that can properly deal with GradingRecords. Since required boolean properties can only be set to true by such an automatically generated form.
app/soc/models/grading_record.py
--- a/app/soc/models/grading_record.py	Mon Jul 13 12:46:54 2009 +0200
+++ b/app/soc/models/grading_record.py	Mon Jul 13 12:48:05 2009 +0200
@@ -91,7 +91,7 @@
   #: Boolean that states if the grade_decision property has been locked
   #: This is to prevent an automatic update from a GradingSurveyGroup to
   #: overwrite the decision made by for example a Program Administrator.
-  locked = db.BooleanProperty(required=True, default=False,
+  locked = db.BooleanProperty(required=False, default=False,
                               verbose_name=ugettext('Grade Decision locked'))
 
   #: Property containing the date that this GradingRecord was created.