16 |
16 |
17 """This module contains the Student Model.""" |
17 """This module contains the Student Model.""" |
18 |
18 |
19 __authors__ = [ |
19 __authors__ = [ |
20 '"Todd Larsen" <tlarsen@google.com>', |
20 '"Todd Larsen" <tlarsen@google.com>', |
|
21 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
21 ] |
22 ] |
22 |
23 |
23 |
24 |
24 from google.appengine.ext import db |
25 from google.appengine.ext import db |
|
26 |
|
27 from django.utils.translation import ugettext |
25 |
28 |
26 import soc.models.role |
29 import soc.models.role |
27 import soc.models.school |
30 import soc.models.school |
28 |
31 |
29 |
32 |
30 class Student(soc.models.role.Role): |
33 class Student(soc.models.role.Role): |
31 """Student details for a specific Program. |
34 """Student details for a specific Program. |
32 """ |
35 """ |
33 |
36 |
|
37 #: Property to gain insight into where students heard about this program |
|
38 program_knowledge = db.TextProperty(required=True, verbose_name=ugettext( |
|
39 "How did you hear about this program?")) |
|
40 program_knowledge.help_text = ugettext("Please be as " |
|
41 "specific as possible, e.g. blog post (include URL if possible), mailing " |
|
42 "list (please include list address), information session (please include " |
|
43 "location and speakers if you can), etc.") |
|
44 program_knowledge.group = ugettext("4. Private Info") |
|
45 |
34 #: A many:1 relationship that ties multiple Students to the |
46 #: A many:1 relationship that ties multiple Students to the |
35 #: School that they attend. |
47 #: School that they attend. |
36 school = db.ReferenceProperty(reference_class=soc.models.school.School, |
48 school = db.ReferenceProperty(reference_class=soc.models.school.School, |
37 required=False, collection_name='students') |
49 required=False, collection_name='students') |
38 |
|