Add 'billing address updated' message in that case

This commit is contained in:
PCoder 2017-10-21 20:58:54 +02:00
parent 1e08ae5426
commit 8df72620d6

View file

@ -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()