Skip to content

Commit

Permalink
auth_oauth_multi_token: cascade delete tokens
Browse files Browse the repository at this point in the history
Otherwise you can't delete a user.
  • Loading branch information
sbidoul authored and sergio-teruel committed Feb 2, 2023
1 parent 7083f79 commit c34e717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth_oauth_multi_token/models/auth_oauth_multi_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AuthOauthMultiToken(models.Model):
required=True,
readonly=True,
index=True,
ondelete="cascade",
)

@api.model
Expand Down

0 comments on commit c34e717

Please sign in to comment.