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

@ -13,7 +13,7 @@ class Flag(Base):
user_id = Column(Integer, ForeignKey("users.id"))
reason = Column(String(100))
user = relationship("User", lazy = "joined", primaryjoin = "Flag.user_id == User.id", uselist = False, viewonly=True)
user = relationship("User", lazy = "joined", primaryjoin = "Flag.user_id == User.id", uselist = False)
def __repr__(self):
@ -39,7 +39,7 @@ class CommentFlag(Base):
comment_id = Column(Integer, ForeignKey("comments.id"))
reason = Column(String(100))
user = relationship("User", lazy = "joined", primaryjoin = "CommentFlag.user_id == User.id", uselist = False, viewonly=True)
user = relationship("User", lazy = "joined", primaryjoin = "CommentFlag.user_id == User.id", uselist = False)
def __repr__(self):