Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2024
1 parent a313c2d commit c28ef92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fundraising/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def payment_succeeded(self):
def subscription_cancelled(self):
subscription = self.event.data.object
cancelled_subscription_id = "cancel" + subscription.id
donation = get_object_or_404(Donation, stripe_subscription_id=cancelled_subscription_id)
donation = get_object_or_404(
Donation, stripe_subscription_id=cancelled_subscription_id
)
donation.stripe_subscription_id = ""
donation.save()

Expand Down

0 comments on commit c28ef92

Please sign in to comment.