equal
deleted
inserted
replaced
56 |
56 |
57 #: Required field storing description of the group. |
57 #: Required field storing description of the group. |
58 description = db.TextProperty(required=True, |
58 description = db.TextProperty(required=True, |
59 verbose_name=ugettext_lazy('Description')) |
59 verbose_name=ugettext_lazy('Description')) |
60 description.example_text = ugettext_lazy('This is the program for GSoC 2009') |
60 description.example_text = ugettext_lazy('This is the program for GSoC 2009') |
|
61 |
|
62 #: Required field storing the type of workflow this program has |
|
63 workflow = db.StringProperty(required=True, |
|
64 choices=['gsoc', 'ghop'], |
|
65 verbose_name= ugettext_lazy('Type of workflow')) |
|
66 workflow.example_text = ugettext_lazy('Project-based for GSoC type workflow, ' |
|
67 'task-based for GHOP type workflow') |
61 |
68 |
62 #: Required 1:1 relationship indicating the Program the Timeline |
69 #: Required 1:1 relationship indicating the Program the Timeline |
63 #: belongs to. |
70 #: belongs to. |
64 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
71 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
65 required=True, collection_name="program", |
72 required=True, collection_name="program", |