app/soc/models/work.py
changeset 400 8f07048d84ef
parent 351 b37fc4c1e189
child 402 021e86368600
equal deleted inserted replaced
399:b82852e6963e 400:8f07048d84ef
    39 
    39 
    40     reviews)  a 1:many relationship between a Work and the zero or more
    40     reviews)  a 1:many relationship between a Work and the zero or more
    41       Reviews of that Work.  This relation is implemented as the 'reviews'
    41       Reviews of that Work.  This relation is implemented as the 'reviews'
    42       back-reference Query of the Review model 'reviewed' reference.
    42       back-reference Query of the Review model 'reviewed' reference.
    43   """
    43   """
       
    44 
       
    45   key_fields = ['partial_path', 'link_name']
       
    46 
    44   #: Required 1:1 relationship indicating the User who initially authored the
    47   #: Required 1:1 relationship indicating the User who initially authored the
    45   #: Work (this relationship is needed to keep track of lifetime document
    48   #: Work (this relationship is needed to keep track of lifetime document
    46   #: creation limits, used to prevent spamming, etc.).
    49   #: creation limits, used to prevent spamming, etc.).
    47   author = db.ReferenceProperty(reference_class=soc.models.user.User,
    50   author = db.ReferenceProperty(reference_class=soc.models.user.User,
    48                                  required=True, collection_name="documents",
    51                                  required=True, collection_name="documents",