Removed reference to GHOPTask and GHOPProgram.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 24 Aug 2009 20:22:45 +0530
changeset 2791 c62f45595b8d
parent 2790 c63bd7fcd7a9
child 2792 14a62fcf4e02
Removed reference to GHOPTask and GHOPProgram. In addition changed required=True to False for information property.
app/soc/modules/ghop/models/work_submission.py
--- a/app/soc/modules/ghop/models/work_submission.py	Mon Aug 24 20:12:10 2009 +0530
+++ b/app/soc/modules/ghop/models/work_submission.py	Mon Aug 24 20:22:45 2009 +0530
@@ -38,26 +38,18 @@
   """Model for work submissions for a task by students.
 
   Scope will be set to the Organization to which this work has been submitted.
+  scope_path will be set to the task key name under which this work was
+  submitted.
   """
 
-  #: Task to which this work was submitted
-  task = db.ReferenceProperty(reference_class=task_model.GHOPTask,
-                              required=True,
-                              collection_name='work_submissions')
-
   #: User who submitted this work
   user = db.ReferenceProperty(reference_class=soc.models.user.User,
                               required=True,
                               collection_name='work_submissions')
 
-  #: Program to which this work belongs to
-  program = db.ReferenceProperty(
-      reference_class=ghop_program_model.GHOPProgram,
-      required=True, collection_name='work_submissions')
-
   #: Property allowing you to store information about your work
   information = db.TextProperty(
-      required=True, verbose_name=ugettext('Info'))
+      required=False, verbose_name=ugettext('Info'))
   information.help_text = ugettext(
       'Information about the work you submit for this task')