From 4560c8bf837f0f1233e6a2c6f8ec5f5806ff8d44 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 26 Dec 2019 11:00:24 +0530 Subject: [PATCH] Bugfix: Pass parameter name --- datacenterlight/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/utils.py b/datacenterlight/utils.py index 0b41926d..3585577c 100644 --- a/datacenterlight/utils.py +++ b/datacenterlight/utils.py @@ -133,7 +133,7 @@ def check_otp(name, realm, token): def validate_vat_number(stripe_customer_id, billing_address_id): try: - billing_address = BillingAddress.objects.get(billing_address_id) + billing_address = BillingAddress.objects.get(id=billing_address_id) except BillingAddress.DoesNotExist as dne: billing_address = None logger.debug("BillingAddress does not exist for %s" % billing_address_id)