app/soc/models/document.py
changeset 338 0d78f41dde9b
parent 322 6641e941ef1e
child 342 72482d8e5b34
equal deleted inserted replaced
337:cb7d22b1e7d8 338:0d78f41dde9b
    54   #: Unlike the work.abstract, which is considered "public" information,
    54   #: Unlike the work.abstract, which is considered "public" information,
    55   #: the content is only to be displayed to Persons in Roles eligible to
    55   #: the content is only to be displayed to Persons in Roles eligible to
    56   #: view them (which may be anyone, for example, with the site front page).
    56   #: view them (which may be anyone, for example, with the site front page).
    57   content = db.TextProperty(verbose_name=ugettext_lazy('Content'))
    57   content = db.TextProperty(verbose_name=ugettext_lazy('Content'))
    58   
    58   
    59   #: User who created this document.
       
    60   #: TODO(pawel.solyga): replace this with WorkAuthors relation
    59   #: TODO(pawel.solyga): replace this with WorkAuthors relation
    61   user = db.ReferenceProperty(reference_class=soc.models.user.User,
    60   #: Required many:1 relationship indicating the founding User of the
    62                               required=True, collection_name='documents')
    61   #: Document (this relationship is needed to keep track of lifetime document
       
    62   #: creation limits, used to prevent spamming, etc.).
       
    63   founder = db.ReferenceProperty(reference_class=soc.models.user.User,
       
    64                                  required=True, collection_name="documents",
       
    65                                  verbose_name=ugettext_lazy('Created by'))
    63 
    66