Add an non-required accepted_orgs_msg property to program profile
Patch by: Sverre Rabbelier
--- a/app/soc/models/program.py Fri Mar 20 22:00:14 2009 +0000
+++ b/app/soc/models/program.py Fri Mar 20 22:49:18 2009 +0000
@@ -66,7 +66,16 @@
'<tt><b>GSoC 2009</b> is the <i>Google Summer of Code</i>,'
' but in <u>2009</u>!</tt><br><br>'
'<small><i>(rich text formatting is supported)</i></small>')
-
+
+ #: Required field storing description of the group.
+ accepted_orgs_msg = db.TextProperty(required=False,
+ verbose_name=ugettext('Accepted Organizations Message'))
+ accepted_orgs_msg.help_text = ugettext(
+ '<small><i>for example:</i></small><br>'
+ '<tt>Students who wish to participate can find out more about'
+ ' each mentoring organization below.</tt><br><br>'
+ '<small><i>(rich text formatting is supported)</i></small>')
+
#: Required field storing application/tasks limit of the program.
apps_tasks_limit = db.IntegerProperty(required=True,
verbose_name=ugettext('Application/Tasks Limit'))
--- a/app/soc/views/models/program.py Fri Mar 20 22:00:14 2009 +0000
+++ b/app/soc/views/models/program.py Fri Mar 20 22:49:18 2009 +0000
@@ -142,6 +142,8 @@
new_params['create_extra_dynaproperties'] = {
'description': forms.fields.CharField(widget=helper.widgets.TinyMCE(
attrs={'rows':10, 'cols':40})),
+ 'accepted_orgs_msg': forms.fields.CharField(
+ widget=helper.widgets.TinyMCE(attrs={'rows':10, 'cols':40})),
'scope_path': forms.CharField(widget=forms.HiddenInput, required=True),
'workflow': forms.ChoiceField(choices=[('gsoc','Project-based'),
('ghop','Task-based')], required=True),