From 2022797834c276a7e831b177d88103c8a187b172 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sat, 7 Jun 2025 16:44:30 +0300 Subject: [PATCH] Fixes: buy_unregistered in Order model fix --- core/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(