app/soc/models/reviewer.py
changeset 181 fdd29818a954
parent 54 03e267d67478
child 207 8ecc2e4198cd
equal deleted inserted replaced
180:a1c6123f9d06 181:fdd29818a954
    36    reviews)  an optional 1:many relationship of Reviews written by the
    36    reviews)  an optional 1:many relationship of Reviews written by the
    37      Reviewer.  This relation is implemented as the 'reviews'
    37      Reviewer.  This relation is implemented as the 'reviews'
    38      back-reference Query of the Review model 'reviewer' reference.
    38      back-reference Query of the Review model 'reviewer' reference.
    39   """
    39   """
    40   
    40   
    41   #: A 1:1 relationship associating a Contributor with generic Author
    41   #: A 1:1 relationship associating a Contributor with Person
    42   #: details and capabilities. The back-reference in the Author model
    42   #: details and capabilities. The back-reference in the Person model
    43   #: is a Query named 'contributor'.
    43   #: is a Query named 'reviewer'.
    44   author = db.ReferenceProperty(reference_class=models.author.Author,
    44   person = db.ReferenceProperty(reference_class=models.person.Person,
    45                                 required=True, collection_name="reviewer")
    45                                 required=True, collection_name="reviewer")
    46 
    46