app/soc/models/program.py
changeset 2138 70b4a5e90eb0
parent 1969 236f677c158c
child 2716 9921ac952f13
--- a/app/soc/models/program.py	Thu Apr 09 22:04:47 2009 +0000
+++ b/app/soc/models/program.py	Thu Apr 09 22:05:07 2009 +0000
@@ -85,6 +85,18 @@
       'of Code</i>, but <b>1</b> is the tasks limit that the student can work '
       'on at the same time during <i>GHOP</i></tt>')
 
+  #: Optional field storing minimum slots per organization
+  min_slots = db.IntegerProperty(required=False, default=2,
+      verbose_name=ugettext('Min slots per org'))
+  min_slots.help_text = ugettext(
+      'The amount of slots each org should get at the very least')
+
+  #: Optional field storing maximum slots per organization
+  max_slots = db.IntegerProperty(required=False, default=50,
+      verbose_name=ugettext('Max slots per org'))
+  max_slots.help_text = ugettext(
+      'The amount of slots each organization should get at most')
+
   #: Required field storing slots limit of the program.
   slots = db.IntegerProperty(required=True,
       verbose_name=ugettext('Slots'))
@@ -95,6 +107,10 @@
       'to the program.<br>For <i>GHOP</i> this indicates how '
       'many tasks can be completed.</tt>')
 
+  #: Optional field storing the allocation of slots for this program
+  slots_allocation = db.TextProperty(required=False,
+      verbose_name=ugettext('the allocation of slots'))
+
   #: Required field storing the type of workflow this program has
   workflow = db.StringProperty(required=True,
       choices=['gsoc', 'ghop'],