Have slots default to 0
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 07 Mar 2009 20:27:52 +0000
changeset 1729 c5cfa7b3cdff
parent 1728 0bda51fe91bf
child 1730 2d877bb10306
Have slots default to 0 Patch by: Sverre Rabbelier, "Mario Ferraro" <fadinlight@gmail.com>
app/soc/models/organization.py
--- a/app/soc/models/organization.py	Sat Mar 07 20:27:24 2009 +0000
+++ b/app/soc/models/organization.py	Sat Mar 07 20:27:52 2009 +0000
@@ -52,7 +52,7 @@
   ideas.example_text = ugettext('For instance a link to a Melange public '
       'document or some other URL')
 
-  slots = db.IntegerProperty(required=False,
+  slots = db.IntegerProperty(required=False, default=0,
       verbose_name=ugettext('Slots allocated'))
   slots.help_text = ugettext(
       'The amount of slots allocated to this organization.')