# HG changeset patch # User Sverre Rabbelier # Date 1236556707 0 # Node ID 393891d794e2494d42588c8852dbae921dd5022d # Parent 94b64c07f7ce327ddebac2dd0f4960f2cbd2fbc5 Hide 'slots' and add 'slots_desired' Patch by: Sverre Rabbelier diff -r 94b64c07f7ce -r 393891d794e2 app/soc/models/organization.py --- a/app/soc/models/organization.py Sun Mar 08 21:59:57 2009 +0000 +++ b/app/soc/models/organization.py Sun Mar 08 23:58:27 2009 +0000 @@ -56,3 +56,9 @@ verbose_name=ugettext('Slots allocated')) slots.help_text = ugettext( 'The amount of slots allocated to this organization.') + + slots_desired = db.IntegerProperty(required=False, default=0, + verbose_name=ugettext('Slots desired')) + slots_desired.help_text = ugettext( + 'The amount of slots desired by this organization.') + diff -r 94b64c07f7ce -r 393891d794e2 app/soc/templates/soc/program/allocation/heading.html --- a/app/soc/templates/soc/program/allocation/heading.html Sun Mar 08 21:59:57 2009 +0000 +++ b/app/soc/templates/soc/program/allocation/heading.html Sun Mar 08 23:58:27 2009 +0000 @@ -1,5 +1,6 @@ Name + Desired Locked? Slots Adjustment diff -r 94b64c07f7ce -r 393891d794e2 app/soc/templates/soc/program/allocation/row.html --- a/app/soc/templates/soc/program/allocation/row.html Sun Mar 08 21:59:57 2009 +0000 +++ b/app/soc/templates/soc/program/allocation/row.html Sun Mar 08 23:58:27 2009 +0000 @@ -1,5 +1,6 @@
{{ list.item.name }}
+
{{ list.item.slots_desired }}