Fixes: buy_unregistered in Order model fix
This commit is contained in:
parent
9e06fa3419
commit
2022797834
1 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue