fdsfsd
This commit is contained in:
parent
e849aa7d54
commit
22b56f5ed4
10 changed files with 25 additions and 25 deletions
|
@ -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)
|
||||
user = relationship("User", 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)
|
||||
user = relationship("User", primaryjoin = "CommentFlag.user_id == User.id", uselist = False)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue