app/soc/models/work.py
changeset 410 2af7f84f4fc7
parent 402 021e86368600
child 477 8a8b1bd035c4
equal deleted inserted replaced
409:9d24850db88f 410:2af7f84f4fc7
    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 
    47   #: Required 1:1 relationship indicating the User who initially authored the
    45   #: Required 1:1 relationship indicating the User who initially authored the
    48   #: Work (this relationship is needed to keep track of lifetime document
    46   #: Work (this relationship is needed to keep track of lifetime document
    49   #: creation limits, used to prevent spamming, etc.).
    47   #: creation limits, used to prevent spamming, etc.).
    50   author = db.ReferenceProperty(reference_class=soc.models.user.User,
    48   author = db.ReferenceProperty(reference_class=soc.models.user.User,