Fixed model name and comment typo's in task model.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 25 May 2009 23:45:20 +0200
changeset 2348 0edff67b472d
parent 2347 c5a397f57d65
child 2349 5a5e3d84b43e
Fixed model name and comment typo's in task model. Also changed the corresponding reference properties.
app/ghop/models/task.py
app/ghop/models/work_submission.py
--- a/app/ghop/models/task.py	Mon May 25 23:42:56 2009 +0200
+++ b/app/ghop/models/task.py	Mon May 25 23:45:20 2009 +0200
@@ -28,14 +28,14 @@
 from django.utils.translation import ugettext
 
 import soc.models.linkable
-import soc.models.organization
-import soc.models.program
 import soc.models.role
 import soc.models.student
 import soc.models.user
 
+import ghop.models.program
 
-class Task(soc.models.linkable.Linkable):
+
+class GHOPTask(soc.models.linkable.Linkable):
   """Model for a task used in GHOP workflow.
 
   The scope property of Linkable will be set to the Organization to which
@@ -53,7 +53,7 @@
                                 verbose_name=ugettext('Description'))
   description.help_text = ugettext('Complete description of the task')
 
-  #: field indicating the difficulty level of the task. This is not
+  #: Field indicating the difficulty level of the Task. This is not
   #: mandatory so the it can be assigned at any later stage. 
   #: The options are configured by a Program Admin.
   difficulty = db.StringProperty(required=False,
@@ -92,7 +92,7 @@
                                  collection_name='assigned_tasks')
 
   #: Program in which this Task has been created
-  program = db.ReferenceProperty(reference_class=soc.models.program.Program,
+  program = db.ReferenceProperty(reference_class=ghop.models.program.GHOPProgram,
                                  required=True,
                                  collection_name='tasks')
 
@@ -124,7 +124,7 @@
                'needs_review'],
       default='unapproved')
 
-  #: A field which indicates if the task was ever in the Reopened state.
+  #: A field which indicates if the Task was ever in the Reopened state.
   #: True indicates that its state was Reopened once, false indicated that it
   #: has never been in the Reopened state.
   was_reopened = db.BooleanProperty(default=False,
--- a/app/ghop/models/work_submission.py	Mon May 25 23:42:56 2009 +0200
+++ b/app/ghop/models/work_submission.py	Mon May 25 23:45:20 2009 +0200
@@ -41,7 +41,7 @@
   """
 
   #: Task to which this work was submitted
-  task = db.ReferenceProperty(reference_class=ghop.models.task.Task,
+  task = db.ReferenceProperty(reference_class=ghop.models.task.GHOPTask,
                               required=True,
                               collection_name='work_submissions')