Add the agrees_to_tos property to Roles (as its own changeset this time...).
authorTodd Larsen <tlarsen@google.com>
Tue, 20 Jan 2009 20:16:07 +0000
changeset 845 255faade3e30
parent 844 b55c68d25b35
child 846 65daaf006399
Add the agrees_to_tos property to Roles (as its own changeset this time...). Patch by: Todd Larsen Review by: to-be-reviewed
app/soc/models/role.py
--- a/app/soc/models/role.py	Tue Jan 20 20:04:21 2009 +0000
+++ b/app/soc/models/role.py	Tue Jan 20 20:16:07 2009 +0000
@@ -75,6 +75,14 @@
   user = db.ReferenceProperty(reference_class=soc.models.user.User,
                               required=True, collection_name='roles')
 
+  #: field storing whether User has agreed to the Role-specific Terms of
+  #: Service. (Not a required field because some Roles may not have special
+  #: Terms of Service.)
+  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 Terms of Service for this Role.') 
+
   #====================================================================
   #  (public) name information
   #====================================================================