diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index 8f9cff4..fa11b38 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -381,10 +381,10 @@ def checkout(request): print('order', order, 'created:', order) for position in cart_positions: OrderPosition.objects.create( - position.article, - order, - position.amount, - position.article.price_in_chf + article=position.article, + order=order, + amount=position.amount, + price_in_chf=position.article.price_in_chf ) ShoppingCart.objects.delete(pk=cart.id)