From 8df72620d617c935c8d8b7c0a1b4889ed1607bb0 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 21 Oct 2017 20:58:54 +0200 Subject: [PATCH] Add 'billing address updated' message in that case --- hosting/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosting/views.py b/hosting/views.py index 25126d00..e62a0dc2 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -597,6 +597,8 @@ class SettingsView(LoginRequiredMixin, FormView): instance=self.request.user.billing_addresses.first(), data=billing_address_data) billing_address_user_form.save() + msg = _("Billing address updated successfully") + messages.add_message(request, messages.SUCCESS, msg) else: token = form.cleaned_data.get('token') stripe_utils = StripeUtils()