Save billing address only if billing_address exists
This commit is contained in:
parent
0d27bac3a8
commit
f4e84f62a4
1 changed files with 2 additions and 1 deletions
|
@ -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" %
|
||||||
|
|
Loading…
Reference in a new issue