Fixes: buy_unregistered in Order model fix

This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-07 16:44:30 +03:00
parent 9e06fa3419
commit 2022797834

View file

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