36 """Student details for a specific Program. |
36 """Student details for a specific Program. |
37 """ |
37 """ |
38 |
38 |
39 school_name = db.StringProperty(required=True, |
39 school_name = db.StringProperty(required=True, |
40 verbose_name=ugettext('School Name')) |
40 verbose_name=ugettext('School Name')) |
41 school_name.group = ugettext("4. Private Info") |
41 school_name.group = ugettext("5. Education") |
42 school_country = db.StringProperty(required=True, |
42 school_country = db.StringProperty(required=True, |
43 verbose_name=ugettext('School Country/Territory'), |
43 verbose_name=ugettext('School Country/Territory'), |
44 choices=countries.COUNTRIES_AND_TERRITORIES) |
44 choices=countries.COUNTRIES_AND_TERRITORIES) |
45 school_country.group = ugettext("4. Private Info") |
45 school_country.group = ugettext("5. Education") |
|
46 |
|
47 major = db.StringProperty(required=True, |
|
48 verbose_name=ugettext('Major Subject')) |
|
49 major.group = ugettext("5. Education") |
|
50 # TODO add more degrees because this should be used in GHOP as well |
|
51 degree = db.StringProperty(required=True, |
|
52 verbose_name=ugettext('Degree'), |
|
53 choices=['Undergraduate', 'Master', 'PhD']) |
|
54 degree.group = ugettext("5. Education") |
|
55 expected_graduation = db.IntegerProperty(required=True, |
|
56 verbose_name=ugettext('Expected Graduation Year')) |
|
57 expected_graduation.help_text = ugettext("Year in integer format only!") |
|
58 expected_graduation.example_text = ugettext('Year only, for example "2012"') |
|
59 expected_graduation.group = ugettext("5. Education") |
46 |
60 |
47 #: Property to gain insight into where students heard about this program |
61 #: Property to gain insight into where students heard about this program |
48 program_knowledge = db.TextProperty(required=True, verbose_name=ugettext( |
62 program_knowledge = db.TextProperty(required=True, verbose_name=ugettext( |
49 "How did you hear about this program?")) |
63 "How did you hear about this program?")) |
50 program_knowledge.help_text = ugettext("Please be as " |
64 program_knowledge.help_text = ugettext("Please be as " |
51 "specific as possible, e.g. blog post (include URL if possible), mailing " |
65 "specific as possible, e.g. blog post (include URL if possible), mailing " |
52 "list (please include list address), information session (please include " |
66 "list (please include list address), information session (please include " |
53 "location and speakers if you can), etc.") |
67 "location and speakers if you can), etc.") |
54 program_knowledge.group = ugettext("4. Private Info") |
68 program_knowledge.group = ugettext("4. Private Info") |
55 |
69 |
56 #: A many:1 relationship that ties multiple Students to the |
70 #: A many:1 relationship that ties multiple Students to the |
57 #: School that they attend. |
71 #: School that they attend. |
58 school = db.ReferenceProperty(reference_class=soc.models.school.School, |
72 school = db.ReferenceProperty(reference_class=soc.models.school.School, |
59 required=False, collection_name='students') |
73 required=False, collection_name='students') |