forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-29 16:11:41 +02:00
parent 3f37c7dae6
commit 013f00c4d3
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
post = relationship("Submission")
flags = relationship("CommentFlag", backref="comment")
votes = relationship("CommentVote")
Votes = relationship(
"CommentVote",
lazy="dynamic",
primaryjoin="CommentVote.comment_id==Comment.id")
author = relationship(
"User",