This commit is contained in:
Aevann1 2021-09-21 23:27:32 +02:00
parent 67e4c1fe5e
commit a7a555cabd
12 changed files with 55 additions and 55 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", lazy="joined", viewonly=True)
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", lazy="joined")
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id", lazy="joined", viewonly=True)
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id", lazy="joined", viewonly=True)
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id", lazy="joined")
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id", lazy="joined")
@property