Bugfix: Pass parameter name

This commit is contained in:
PCoder 2019-12-26 11:00:24 +05:30
parent 0e40ca6044
commit 4560c8bf83

View file

@ -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)