diff --git a/files/classes/comment.py b/files/classes/comment.py index 81bd34877..f7f13c065 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -54,7 +54,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): flags = relationship("CommentFlag", lazy="joined") votes = relationship( "CommentVote", - lazy="dynamic", + lazy="joined", primaryjoin="CommentVote.comment_id==Comment.id") author = relationship(