Added nr_applications and nr_mentors
These two properties can then be used to store the amount of
applications and mentors an organization has.
Patch by: Sverre Rabbelier
--- a/app/soc/models/organization.py Mon Mar 30 22:38:08 2009 +0000
+++ b/app/soc/models/organization.py Mon Mar 30 22:52:15 2009 +0000
@@ -62,3 +62,12 @@
slots_desired.help_text = ugettext(
'The amount of slots desired by this organization.')
+ nr_applications = db.IntegerProperty(required=False, default=0,
+ verbose_name=ugettext('Amount of applications received'))
+ nr_applications.help_text = ugettext(
+ 'The amount of applications received by this organization.')
+
+ nr_mentors = db.IntegerProperty(required=False, default=0,
+ verbose_name=ugettext('Amount of mentors assigned'))
+ nr_mentors.help_text = ugettext(
+ 'The amount of mentors assigned to a proposal by this organization.')
--- a/app/soc/views/models/organization.py Mon Mar 30 22:38:08 2009 +0000
+++ b/app/soc/views/models/organization.py Mon Mar 30 22:52:15 2009 +0000
@@ -106,7 +106,7 @@
new_params['group_applicant_url'] = True
new_params['sans_link_id_public_list'] = True
- new_params['extra_dynaexclude'] = ['slots']
+ new_params['extra_dynaexclude'] = ['slots', 'nr_applications', 'nr_mentors']
patterns = []