128 student_min_age_as_of.group = ugettext('Contest Rules') |
128 student_min_age_as_of.group = ugettext('Contest Rules') |
129 student_min_age_as_of.help_text = ugettext( |
129 student_min_age_as_of.help_text = ugettext( |
130 'Date as of which the student minimum age requirement ' |
130 'Date as of which the student minimum age requirement ' |
131 'should be reached.') |
131 'should be reached.') |
132 |
132 |
133 #: Required field storing the type of workflow this program has |
|
134 workflow = db.StringProperty(required=True, |
|
135 choices=['gsoc', 'ghop'], |
|
136 verbose_name= ugettext('Workflow type')) |
|
137 workflow.example_text = ugettext( |
|
138 '<tt><b>Project-based</b> for GSoC workflow type,<br>' |
|
139 '<b>Task-based</b> for GHOP workflow type.</tt>') |
|
140 |
|
141 #: Required 1:1 relationship indicating the Program the Timeline |
133 #: Required 1:1 relationship indicating the Program the Timeline |
142 #: belongs to. |
134 #: belongs to. |
143 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
135 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
144 required=True, collection_name="program", |
136 required=True, collection_name="program", |
145 verbose_name=ugettext('Timeline')) |
137 verbose_name=ugettext('Timeline')) |