Verified Commit bc9bb045 authored by Kevin Morris's avatar Kevin Morris
Browse files

fix(fastapi): PackageRequest's PackageBase relationship should not required


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 6b065956
......@@ -37,8 +37,7 @@ class PackageRequest(Base):
foreign_keys=[UsersID])
PackageBaseID = Column(
Integer, ForeignKey("PackageBases.ID", ondelete="SET NULL"),
nullable=False)
Integer, ForeignKey("PackageBases.ID", ondelete="SET NULL"))
PackageBase = relationship(
_PackageBase, backref=backref("requests", lazy="dynamic"),
foreign_keys=[PackageBaseID])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment