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 <>
parent 6b065956
...@@ -37,8 +37,7 @@ class PackageRequest(Base): ...@@ -37,8 +37,7 @@ class PackageRequest(Base):
foreign_keys=[UsersID]) foreign_keys=[UsersID])
PackageBaseID = Column( PackageBaseID = Column(
Integer, ForeignKey("PackageBases.ID", ondelete="SET NULL"), Integer, ForeignKey("PackageBases.ID", ondelete="SET NULL"))
PackageBase = relationship( PackageBase = relationship(
_PackageBase, backref=backref("requests", lazy="dynamic"), _PackageBase, backref=backref("requests", lazy="dynamic"),
foreign_keys=[PackageBaseID]) foreign_keys=[PackageBaseID])
Supports Markdown
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