forked from MarseyWorld/MarseyWorld
fix 500 error
parent
1a0b2b6813
commit
7db7abc3ab
|
@ -81,7 +81,7 @@ class Comment(Base):
|
||||||
author = relationship("User", primaryjoin="User.id==Comment.author_id")
|
author = relationship("User", primaryjoin="User.id==Comment.author_id")
|
||||||
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto")
|
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto")
|
||||||
parent_comment = relationship("Comment", remote_side=[id], back_populates="child_comments")
|
parent_comment = relationship("Comment", remote_side=[id], back_populates="child_comments")
|
||||||
child_comments = relationship("Comment", lazy="dynamic" remote_side=[parent_comment_id], back_populates="parent_comment")
|
child_comments = relationship("Comment", lazy="dynamic", remote_side=[parent_comment_id], back_populates="parent_comment")
|
||||||
awards = relationship("AwardRelationship", order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment")
|
awards = relationship("AwardRelationship", order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment")
|
||||||
flags = relationship("CommentFlag", order_by="CommentFlag.created_utc")
|
flags = relationship("CommentFlag", order_by="CommentFlag.created_utc")
|
||||||
options = relationship("CommentOption", order_by="CommentOption.id")
|
options = relationship("CommentOption", order_by="CommentOption.id")
|
||||||
|
|
Loading…
Reference in New Issue