diff --git a/core/models.py b/core/models.py index 7c479151..9b5e416f 100644 --- a/core/models.py +++ b/core/models.py @@ -723,9 +723,9 @@ class Order(ExportModelOperationsMixin("order"), NiceModel): if len(products) < 1: raise ValueError(_("you cannot purchase an empty order!")) - customer_name = kwargs.pop("customer_name") - customer_email = kwargs.pop("customer_email") - customer_phone_number = kwargs.pop("customer_phone_number") + customer_name = kwargs.get("customer_name") + customer_email = kwargs.get("customer_email") + customer_phone_number = kwargs.get("customer_phone_number") if not all([customer_name, customer_email, customer_phone_number]): raise ValueError(