# HG changeset patch # User Sverre Rabbelier # Date 1238453535 0 # Node ID 3f355dca3679ba31aae2d50452260f5226d2f6be # Parent d23379c80b48090fed28d62092ccf5cc0f8a9d70 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 diff -r d23379c80b48 -r 3f355dca3679 app/soc/models/organization.py --- 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.') diff -r d23379c80b48 -r 3f355dca3679 app/soc/views/models/organization.py --- 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 = []