From 242dbb247920a37153e5b18bfc72b12d98c32a3c Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 26 Dec 2019 11:50:15 +0530 Subject: [PATCH] Bugfix: pass param --- datacenterlight/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 360f99bb..21657bca 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -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'],