app/soc/models/work.py
changeset 1678 80411f57f31a
parent 1308 35b75ffcbb37
child 1687 8203c805edc7
equal deleted inserted replaced
1677:b2cf6ad50a2a 1678:80411f57f31a
    37   serving in "roles".
    37   serving in "roles".
    38 
    38 
    39     reviews)  a 1:many relationship between a Work and the zero or more
    39     reviews)  a 1:many relationship between a Work and the zero or more
    40       Reviews of that Work.  This relation is implemented as the 'reviews'
    40       Reviews of that Work.  This relation is implemented as the 'reviews'
    41       back-reference Query of the Review model 'reviewed' reference.
    41       back-reference Query of the Review model 'reviewed' reference.
       
    42 
       
    43     comments)  a 1:many relationship between a work and zero or more comments
       
    44       about that work.  This is implemented as the 'comments' back-reference
       
    45       of the Comment.commented reference property.
    42   """
    46   """
    43 
    47 
    44   #: Required 1:1 relationship indicating the User who initially authored the
    48   #: Required 1:1 relationship indicating the User who initially authored the
    45   #: Work (this relationship is needed to keep track of lifetime document
    49   #: Work (this relationship is needed to keep track of lifetime document
    46   #: creation limits, used to prevent spamming, etc.).
    50   #: creation limits, used to prevent spamming, etc.).
    82 
    86 
    83   def name(self):
    87   def name(self):
    84     """Alias 'title' Property as 'name' for use in common templates.
    88     """Alias 'title' Property as 'name' for use in common templates.
    85     """
    89     """
    86     return self.title
    90     return self.title
    87