# HG changeset patch # User Lennard de Rijk # Date 1233156833 0 # Node ID dfe21b16c86c163cd8ed85f8bc0f05be81d75992 # Parent d15138ee4e886325b81de0f4be5ea7bd93f2e074 Added default values to the User model. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r d15138ee4e88 -r dfe21b16c86c app/soc/models/user.py --- a/app/soc/models/user.py Wed Jan 28 15:32:57 2009 +0000 +++ b/app/soc/models/user.py Wed Jan 28 15:33:53 2009 +0000 @@ -86,7 +86,7 @@ ' site.') #: field storing whether User is a Developer with site-wide access. - is_developer = db.BooleanProperty( + is_developer = db.BooleanProperty(default=False, verbose_name=ugettext('Is Developer')) is_developer.help_text = ugettext( 'Field used to indicate user with site-wide Developer access.') @@ -94,7 +94,7 @@ #: field storing whether User has agreed to the site-wide Terms of Service. #: (Not a required field because the Terms of Service might not be present #: when the first User profile is created when bootstrapping the site.) - agrees_to_tos = db.BooleanProperty( + agrees_to_tos = db.BooleanProperty(default=False, verbose_name=ugettext('Agrees to ToS')) agrees_to_tos.help_text = ugettext( 'Indicates that the user agrees to the site-wide Terms of Service.')