Skip to content

Commit

Permalink
fix: delete org apps for user (pypi#16685)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 11, 2024
1 parent 1a5b9b1 commit 740c072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warehouse/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class User(SitemapMixin, HasObservers, HasObservations, HasEvents, db.Model):

organization_applications: Mapped[list[OrganizationApplication]] = orm.relationship(
back_populates="submitted_by",
cascade="all, delete-orphan",
)

organizations: Mapped[list[Organization]] = orm.relationship(
Expand Down

0 comments on commit 740c072

Please sign in to comment.