Skip to content

Commit b1b7e5d

Browse files
cascade role_invitations delete
1 parent 98e12a9 commit b1b7e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/packaging/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Project(SitemapMixin, HasEvents, HasObservations, db.Model):
222222
passive_deletes=True,
223223
)
224224
invitations: Mapped[list[RoleInvitation]] = orm.relationship(
225-
back_populates="project",
225+
back_populates="project", cascade="all, delete-orphan"
226226
)
227227
team: Mapped[Team] = orm.relationship(
228228
secondary=TeamProjectRole.__table__,

0 commit comments

Comments
 (0)