equal
deleted
inserted
replaced
16 |
16 |
17 """This module contains the Organization Administrator Model.""" |
17 """This module contains the Organization Administrator Model.""" |
18 |
18 |
19 __authors__ = [ |
19 __authors__ = [ |
20 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
20 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
|
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
22 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
22 ] |
23 ] |
23 |
24 |
24 |
25 |
25 from google.appengine.ext import db |
26 from google.appengine.ext import db |
|
27 |
|
28 from django.utils.translation import ugettext |
26 |
29 |
27 import soc.models.program |
30 import soc.models.program |
28 import soc.models.role |
31 import soc.models.role |
29 |
32 |
30 |
33 |
33 """ |
36 """ |
34 |
37 |
35 #: A required property that defines the program that this org admin works for |
38 #: A required property that defines the program that this org admin works for |
36 program = db.ReferenceProperty(reference_class=soc.models.program.Program, |
39 program = db.ReferenceProperty(reference_class=soc.models.program.Program, |
37 required=True, collection_name='org_admins') |
40 required=True, collection_name='org_admins') |
|
41 |
|
42 can_we_contact_you = db.BooleanProperty(verbose_name=ugettext( |
|
43 'Can we contact you?')) |
|
44 can_we_contact_you.help_text = ugettext( |
|
45 'Please check here if you would not mind being contacted by the Program' |
|
46 ' Administrators for follow up with members of the press who would like' |
|
47 ' to interview you about the program.') |
|
48 can_we_contact_you.group = ugettext("2. Contact Info (Private)") |