Added a 'Can we contact you' property
authorSverre Rabbelier <srabbelier@gmail.com>
Sun, 22 Mar 2009 22:06:54 +0000
changeset 1989 3fa3384b5378
parent 1988 d826f7aed8f2
child 1990 fea8bdb43992
Added a 'Can we contact you' property Patch by: Sverre Rabbelier
app/soc/models/mentor.py
app/soc/models/org_admin.py
app/soc/models/student.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" <tlarsen@google.com>',
+  '"Sverre Rabbelier" <sverre@rabbelier.nl>',
   '"Lennard de Rijk" <ljdverijk@gmail.com>',
 ]
 
 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)")
--- 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" <ljvderijk@gmail.com>',
+  '"Sverre Rabbelier" <sverre@rabbelier.nl>',
   '"Pawel Solyga" <pawel.solyga@gmail.com>',
 ]
 
 
 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)")
--- 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" <tlarsen@google.com>',
+  '"Sverre Rabbelier" <sverre@rabbelier.nl>',
   '"Lennard de Rijk" <ljvderijk@gmail.com>',
 ]
 
@@ -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. <br />'
+      '<b>Please note that checking this  box has no effect on your chances'
+      ' of being accepted into the program</b>.')
+  can_we_contact_you.group = ugettext("2. Contact Info (Private)")