This commit is contained in:
Aevann1 2021-09-22 16:51:36 +02:00
parent 54f0df5e6f
commit 66b302a86d
11 changed files with 53 additions and 53 deletions

View file

@ -65,10 +65,10 @@ class AwardRelationship(Base):
comment_id = Column(Integer, ForeignKey("comments.id"), default=None)
kind = Column(String(20))
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id")
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", viewonly=True)
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id")
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id")
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id", viewonly=True)
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id", viewonly=True)
@property