# HG changeset patch # User Sverre Rabbelier # Date 1237759614 0 # Node ID 3fa3384b537852928a1567a58b8b247622449b11 # Parent d826f7aed8f2aca3c49b5d2535a2aefef4dc8180 Added a 'Can we contact you' property Patch by: Sverre Rabbelier diff -r d826f7aed8f2 -r 3fa3384b5378 app/soc/models/mentor.py --- a/app/soc/models/mentor.py Sun Mar 22 20:13:19 2009 +0000 +++ b/app/soc/models/mentor.py Sun Mar 22 22:06:54 2009 +0000 @@ -18,11 +18,14 @@ __authors__ = [ '"Todd Larsen" ', + '"Sverre Rabbelier" ', '"Lennard de Rijk" ', ] from google.appengine.ext import db +from django.utils.translation import ugettext + import soc.models.program import soc.models.role @@ -34,3 +37,11 @@ #: A required property that defines the program that this mentor works for program = db.ReferenceProperty(reference_class=soc.models.program.Program, required=True, collection_name='mentors') + + can_we_contact_you = db.BooleanProperty(verbose_name=ugettext( + 'Can we contact you?')) + can_we_contact_you.help_text = ugettext( + 'Please check here if you would not mind being contacted by the Program' + ' Administrators for follow up with members of the press who would like' + ' to interview you about the program.') + can_we_contact_you.group = ugettext("2. Contact Info (Private)") diff -r d826f7aed8f2 -r 3fa3384b5378 app/soc/models/org_admin.py --- a/app/soc/models/org_admin.py Sun Mar 22 20:13:19 2009 +0000 +++ b/app/soc/models/org_admin.py Sun Mar 22 22:06:54 2009 +0000 @@ -18,12 +18,15 @@ __authors__ = [ '"Lennard de Rijk" ', + '"Sverre Rabbelier" ', '"Pawel Solyga" ', ] from google.appengine.ext import db +from django.utils.translation import ugettext + import soc.models.program import soc.models.role @@ -35,3 +38,11 @@ #: A required property that defines the program that this org admin works for program = db.ReferenceProperty(reference_class=soc.models.program.Program, required=True, collection_name='org_admins') + + can_we_contact_you = db.BooleanProperty(verbose_name=ugettext( + 'Can we contact you?')) + can_we_contact_you.help_text = ugettext( + 'Please check here if you would not mind being contacted by the Program' + ' Administrators for follow up with members of the press who would like' + ' to interview you about the program.') + can_we_contact_you.group = ugettext("2. Contact Info (Private)") diff -r d826f7aed8f2 -r 3fa3384b5378 app/soc/models/student.py --- a/app/soc/models/student.py Sun Mar 22 20:13:19 2009 +0000 +++ b/app/soc/models/student.py Sun Mar 22 22:06:54 2009 +0000 @@ -18,6 +18,7 @@ __authors__ = [ '"Todd Larsen" ', + '"Sverre Rabbelier" ', '"Lennard de Rijk" ', ] @@ -71,3 +72,14 @@ #: School that they attend. school = db.ReferenceProperty(reference_class=soc.models.school.School, required=False, collection_name='students') + + can_we_contact_you = db.BooleanProperty(verbose_name=ugettext( + 'Can we contact you?')) + can_we_contact_you.help_text = ugettext( + 'Please check here if you would not mind being contacted by the Program' + ' Administrators for follow up with members of the press who would like' + ' to interview you about the program. You will not be contacted unless ' + ' you successfully complete your project.
' + 'Please note that checking this box has no effect on your chances' + ' of being accepted into the program.') + can_we_contact_you.group = ugettext("2. Contact Info (Private)")