From e4a58c48fdee02ac2fe9a4e7b263f3cad0147959 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 25 Feb 2018 17:30:20 +0100 Subject: [PATCH] shorten a line to under 80 characters --- django/didgeridoo/webshop/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index b9575fd..cd9fcda 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -261,7 +261,9 @@ def cart(request): # here we handle the normal cart view: # if cart_id is not existent create a cart: - cart_id, created_cart = ShoppingCart.objects.get_or_create(user=request.user) + cart_id, created_cart = ShoppingCart.objects.get_or_create( + user=request.user + ) # get all items in the cart of this customer: cart_positions = CartPosition.objects.filter(cart=cart_id) if (cart_positions.count()) > 0: