Bugfix: pass param

This commit is contained in:
PCoder 2019-12-26 11:50:15 +05:30
parent 833dc9bdcb
commit 242dbb2479

View file

@ -642,8 +642,7 @@ class OrderConfirmationView(DetailView, FormView):
vm_specs["price"] = price
vat_number = request.session.get('billing_address_data').get("vat_number")
billing_address = BillingAddress.objects.get(
request.session["billing_address_id"])
billing_address = BillingAddress.objects.get(id=request.session["billing_address_id"])
if vat_number:
validate_result = validate_vat_number(
stripe_customer_id=request.session['customer'],