forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-31 15:47:49 +02:00
parent 3b8e1c7c7f
commit 91cdcab3b7
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
backref="submissions")
domain_ref = Column(Integer, ForeignKey("domains.id"))
domain_obj = relationship("Domain")
flags = relationship("Flag", backref="submission")
flags = relationship("Flag", lazy="dynamic", primaryjoin="Flag.submission_id==Submission.id")
is_approved = Column(Integer, ForeignKey("users.id"), default=0)
over_18 = Column(Boolean, default=False)
author = relationship(