diff --git a/manage_subscriptions/views.py b/manage_subscriptions/views.py index 57a32eb..1ce53de 100644 --- a/manage_subscriptions/views.py +++ b/manage_subscriptions/views.py @@ -720,7 +720,7 @@ class CancelSubscriptionView(LoginRequiredMixin, generic.View): try: subscription = PrincipalSubscription.objects.get( - stripe_subscription_id=subscription_id, principal=request.user + id=subscription_id, principal=request.user ) except PrincipalSubscription.DoesNotExist: messages.error(request, "Subscription not found.") diff --git a/templates/stripe_html/active_subscription.html b/templates/stripe_html/active_subscription.html index a78f350..c6bef02 100644 --- a/templates/stripe_html/active_subscription.html +++ b/templates/stripe_html/active_subscription.html @@ -141,7 +141,7 @@

Cancel Subscription

{% csrf_token %} - +