[themotte/rDrama#451] Add relation
This commit is contained in:
parent
9c1e247685
commit
8d24fc3a48
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ class Comment(Base):
|
|||
author = relationship("User", primaryjoin="User.id==Comment.author_id")
|
||||
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto", viewonly=True)
|
||||
parent_comment = relationship("Comment", remote_side=[id], viewonly=True)
|
||||
parent_comment_writable = relationship("Comment", remote_side=[id])
|
||||
child_comments = relationship("Comment", lazy="dynamic", remote_side=[parent_comment_id], viewonly=True)
|
||||
awards = relationship("AwardRelationship",
|
||||
primaryjoin="AwardRelationship.comment_id == Comment.id",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue