fsdfs
This commit is contained in:
parent
54f0df5e6f
commit
66b302a86d
11 changed files with 53 additions and 53 deletions
|
@ -13,7 +13,7 @@ class Flag(Base):
|
|||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
reason = Column(String(100))
|
||||
|
||||
user = relationship("User", primaryjoin = "Flag.user_id == User.id", uselist = False)
|
||||
user = relationship("User", primaryjoin = "Flag.user_id == User.id", uselist = False, viewonly=True)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
|
@ -39,7 +39,7 @@ class CommentFlag(Base):
|
|||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||
reason = Column(String(100))
|
||||
|
||||
user = relationship("User", primaryjoin = "CommentFlag.user_id == User.id", uselist = False)
|
||||
user = relationship("User", primaryjoin = "CommentFlag.user_id == User.id", uselist = False, viewonly=True)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue