Add "agrees to site-wide Terms of Service" boolean property for all Users.
authorTodd Larsen <tlarsen@google.com>
Wed, 14 Jan 2009 22:02:39 +0000
changeset 811 9e56019eb218
parent 810 208659644a7f
child 812 36280f137731
Add "agrees to site-wide Terms of Service" boolean property for all Users. Patch by: Todd Larsen Review by: to-be-reviewed
app/soc/models/user.py
--- a/app/soc/models/user.py	Wed Jan 14 20:37:56 2009 +0000
+++ b/app/soc/models/user.py	Wed Jan 14 22:02:39 2009 +0000
@@ -89,3 +89,11 @@
   is_developer.help_text = ugettext_lazy(
       'Field used to indicate user with site-wide Developer access.')
 
+  #: 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(
+      verbose_name=ugettext_lazy('Agrees to ToS'))
+  agrees_to_tos.help_text = ugettext_lazy(
+      'Indicates that the user agrees to the site-wide Terms of Service.')
+