app/soc/models/comment.py
changeset 2588 db306bbda381
parent 2398 3ea483cf4d59
equal deleted inserted replaced
2587:ec7818110fd2 2588:db306bbda381
    40   """
    40   """
    41 
    41 
    42   #: A required many:1 relationship with a comment entity indicating
    42   #: A required many:1 relationship with a comment entity indicating
    43   #: the user who provided that comment.
    43   #: the user who provided that comment.
    44   author = db.ReferenceProperty(reference_class=soc.models.user.User,
    44   author = db.ReferenceProperty(reference_class=soc.models.user.User,
    45                                   required=True, collection_name="commented")
    45                                 required=True, collection_name="commented")
    46 
    46 
    47   #: The rich textual content of this comment
    47   #: The rich textual content of this comment
    48   content = db.TextProperty(verbose_name=_('Content'))
    48   content = db.TextProperty(verbose_name=_('Content'))
    49 
    49 
    50   #: Indicated if the comment should be visible to the appropriate student
    50   #: Indicated if the comment should be visible to the appropriate student