fix the cart deletion
This commit is contained in:
parent
ee4d332a3b
commit
91d6b2b4d4
|
@ -386,7 +386,8 @@ def checkout(request):
|
|||
amount=position.amount,
|
||||
price_in_chf=position.article.price_in_chf
|
||||
)
|
||||
ShoppingCart.objects.delete(pk=cart.id)
|
||||
cart.delete()
|
||||
cart = False
|
||||
|
||||
return render(request, 'webshop/checkout.html',
|
||||
{'cart_position_list': cart_position_list,
|
||||
|
|
Loading…
Reference in New Issue