Save billing address only if billing_address exists

This commit is contained in:
PCoder 2020-01-01 01:28:35 +05:30
parent 0d27bac3a8
commit f4e84f62a4

View file

@ -663,6 +663,7 @@ class SettingsView(LoginRequiredMixin, FormView):
extra_tags='error' extra_tags='error'
) )
billing_address = current_billing_address billing_address = current_billing_address
if billing_address:
billing_address.save() billing_address.save()
email_data = { email_data = {
'subject': "%s updated VAT number to %s but failed" % 'subject': "%s updated VAT number to %s but failed" %