Skip to content

Commit

Permalink
delete dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Nov 22, 2024
1 parent e444e82 commit 7ec1062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildingmotif/database/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class DBTemplate(Base):
primaryjoin=id == DepsAssociation.dependant_id,
secondaryjoin=id == DepsAssociation.dependee_id,
back_populates="dependants",
cascade="all,delete",
)
dependants: Mapped[List["DBTemplate"]] = relationship(
"DBTemplate",
Expand Down

0 comments on commit 7ec1062

Please sign in to comment.