Fixes: buy_without_registration for Order
This commit is contained in:
parent
0e227a6df0
commit
39989aa1d4
1 changed files with 5 additions and 0 deletions
|
|
@ -756,6 +756,10 @@ class Order(ExportModelOperationsMixin("order"), NiceModel):
|
|||
amount = self.apply_promocode(promocode_uuid) if promocode_uuid else self.total_price
|
||||
|
||||
self.status = "CREATED"
|
||||
|
||||
if self.attributes is None:
|
||||
self.attributes = {}
|
||||
|
||||
self.attributes.update(
|
||||
{
|
||||
"customer_name": customer_name,
|
||||
|
|
@ -764,6 +768,7 @@ class Order(ExportModelOperationsMixin("order"), NiceModel):
|
|||
"is_business": kwargs.get("is_business", False),
|
||||
}
|
||||
)
|
||||
|
||||
self.save()
|
||||
|
||||
return Transaction.objects.create(
|
||||
|
|
|
|||
Loading…
Reference in a new issue