equal
deleted
inserted
replaced
39 visible to the student), or private (i.e. visible to programme/club staff). |
39 visible to the student), or private (i.e. visible to programme/club staff). |
40 Neither type are visible to people who are not connected to the work being |
40 Neither type are visible to people who are not connected to the work being |
41 commented on. |
41 commented on. |
42 """ |
42 """ |
43 |
43 |
44 #: A required many:1 relationship with a Work, where the comment entity |
|
45 #: provides additional textual information about the commented work. |
|
46 #: There is a backreference in Work called comments, which is a db.Query |
|
47 #: instance |
|
48 commented = db.ReferenceProperty(reference_class=soc.models.work.Work, |
|
49 required=False, collection_name="comments") |
|
50 |
|
51 #: A required many:1 relationship with a comment entity indicating |
44 #: A required many:1 relationship with a comment entity indicating |
52 #: the user who provided that comment. There is a backreference in Work |
45 #: the user who provided that comment. There is a backreference in Work |
53 #: called comments, which is a db.Query instance. |
46 #: called comments, which is a db.Query instance. |
54 author = db.ReferenceProperty(reference_class=soc.models.user.User, |
47 author = db.ReferenceProperty(reference_class=soc.models.user.User, |
55 required=True, collection_name="commented") |
48 required=True, collection_name="commented") |