fix
This commit is contained in:
parent
e75be4cd44
commit
e79fb80893
@ -411,7 +411,7 @@ def cart_buy(request):
|
||||
total_price = 0
|
||||
invoice.save()
|
||||
|
||||
for cp in itertools.chain(cart_products, [Product.objects.get(id=2)]):
|
||||
for cp in itertools.chain(cart_products, [CartProduct(quantity=1, product=Product.objects.get(id=2), cart=cart)]):
|
||||
ip = InvoiceProduct(
|
||||
invoice=invoice,
|
||||
price=cp.product.price,
|
||||
|
Loading…
x
Reference in New Issue
Block a user