equal
deleted
inserted
replaced
30 import soc.models.linkable |
30 import soc.models.linkable |
31 import soc.models.role |
31 import soc.models.role |
32 import soc.models.student |
32 import soc.models.student |
33 import soc.models.user |
33 import soc.models.user |
34 |
34 |
35 import ghop.models.program |
35 from soc.modules.ghop.models import program as ghop_program_model |
36 |
36 |
37 |
37 |
38 class GHOPTask(soc.models.linkable.Linkable): |
38 class GHOPTask(soc.models.linkable.Linkable): |
39 """Model for a task used in GHOP workflow. |
39 """Model for a task used in GHOP workflow. |
40 |
40 |
90 student = db.ReferenceProperty(reference_class=soc.models.student.Student, |
90 student = db.ReferenceProperty(reference_class=soc.models.student.Student, |
91 required=False, |
91 required=False, |
92 collection_name='assigned_tasks') |
92 collection_name='assigned_tasks') |
93 |
93 |
94 #: Program in which this Task has been created |
94 #: Program in which this Task has been created |
95 program = db.ReferenceProperty(reference_class=ghop.models.program.GHOPProgram, |
95 program = db.ReferenceProperty( |
96 required=True, |
96 reference_class=ghop_program_model.GHOPProgram, |
97 collection_name='tasks') |
97 required=True, collection_name='tasks') |
98 |
98 |
99 #: Required property which holds the state, the Task is currently in. |
99 #: Required property which holds the state, the Task is currently in. |
100 #: This is a hidden field not shown on forms. Handled by logic internally. |
100 #: This is a hidden field not shown on forms. Handled by logic internally. |
101 #: The state can be one of the following: |
101 #: The state can be one of the following: |
102 #: unapproved: If Task is created by a Mentor, this is the automatically |
102 #: unapproved: If Task is created by a Mentor, this is the automatically |