From c28ef92a2196b0a29ad81c360b3e2c5c41312c4c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:28:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- fundraising/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fundraising/views.py b/fundraising/views.py index b299899f22..e3c18633de 100644 --- a/fundraising/views.py +++ b/fundraising/views.py @@ -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()