Added nr_applications and nr_mentors
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 30 Mar 2009 22:52:15 +0000
changeset 2037 3f355dca3679
parent 2036 d23379c80b48
child 2038 c790eb9955aa
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
app/soc/models/organization.py
app/soc/views/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.')
--- 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 = []