diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index d7abbfd4be..b9a6540afa 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -42,7 +42,7 @@ def get_cart_quotation(doc=None): addresses = get_address_docs(party=party) - if not doc.customer_address and addresses: + if not doc.get("customer_address") and addresses: update_cart_address("billing", addresses[0].name) return {