app/soc/models/document.py
changeset 351 b37fc4c1e189
parent 342 72482d8e5b34
child 385 6d410bf49a82
equal deleted inserted replaced
350:e8f14fde7f0e 351:b37fc4c1e189
    36   The specific way that the properties and relations inherited from Work
    36   The specific way that the properties and relations inherited from Work
    37   are used with a Document are described below.
    37   are used with a Document are described below.
    38 
    38 
    39     work.title:  the title of the Document
    39     work.title:  the title of the Document
    40 
    40 
    41     work.abstract:  document summary displayed as a snippet in Document
    41     work.reviews:  reviews of the Document by Reviewers
    42       list views
       
    43 
    42 
    44     work.reviews:  reviews of the Document by Reviewers
    43     work.content:  the rich-text contents of the Document
    45   """
    44   """
    46 
    45   pass
    47   #: Required db.TextProperty containing the Document contents.
       
    48   #: Unlike the work.abstract, which is considered "public" information,
       
    49   #: the content is only to be displayed to Persons in Roles eligible to
       
    50   #: view them (which may be anyone, for example, with the site front page).
       
    51   content = db.TextProperty(verbose_name=ugettext_lazy('Content'))