Stripe checkout #104411
@ -1,7 +1,6 @@
|
|||||||
"""Views handling subscription management."""
|
"""Views handling subscription management."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.contrib import messages
|
|
||||||
from django.contrib.messages.views import SuccessMessageMixin
|
from django.contrib.messages.views import SuccessMessageMixin
|
||||||
from django.http import HttpResponseForbidden
|
from django.http import HttpResponseForbidden
|
||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
@ -53,7 +52,6 @@ class PaymentMethodChangeDoneView(looper.views.settings.PaymentMethodChangeDoneV
|
|||||||
@property
|
@property
|
||||||
def success_url(self):
|
def success_url(self):
|
||||||
"""Return to this subscription's manage page."""
|
"""Return to this subscription's manage page."""
|
||||||
messages.add_message(self.request, messages.INFO, 'Payment method updated')
|
|
||||||
return reverse(
|
return reverse(
|
||||||
'subscriptions:manage',
|
'subscriptions:manage',
|
||||||
kwargs={'subscription_id': self.kwargs['subscription_id']},
|
kwargs={'subscription_id': self.kwargs['subscription_id']},
|
||||||
|
Loading…
Reference in New Issue
Block a user