app/soc/models/role.py
changeset 845 255faade3e30
parent 842 ed494131f6e5
child 879 05082afd4b6e
equal deleted inserted replaced
844:b55c68d25b35 845:255faade3e30
    72   #: entities of) Role details to a unique User. A Role cannot
    72   #: entities of) Role details to a unique User. A Role cannot
    73   #: exist unassociated from a login identity and credentials. The
    73   #: exist unassociated from a login identity and credentials. The
    74   #: back-reference in the User model is a Query named 'roles'.
    74   #: back-reference in the User model is a Query named 'roles'.
    75   user = db.ReferenceProperty(reference_class=soc.models.user.User,
    75   user = db.ReferenceProperty(reference_class=soc.models.user.User,
    76                               required=True, collection_name='roles')
    76                               required=True, collection_name='roles')
       
    77 
       
    78   #: field storing whether User has agreed to the Role-specific Terms of
       
    79   #: Service. (Not a required field because some Roles may not have special
       
    80   #: Terms of Service.)
       
    81   agrees_to_tos = db.BooleanProperty(
       
    82       verbose_name=ugettext_lazy('Agrees to ToS'))
       
    83   agrees_to_tos.help_text = ugettext_lazy(
       
    84       'Indicates that the user agrees to the Terms of Service for this Role.') 
    77 
    85 
    78   #====================================================================
    86   #====================================================================
    79   #  (public) name information
    87   #  (public) name information
    80   #====================================================================
    88   #====================================================================
    81 
    89