shorten a line to under 80 characters

This commit is contained in:
Andreas Zweili 2018-02-25 17:30:20 +01:00
parent 81f0fc0c4b
commit e4a58c48fd
1 changed files with 3 additions and 1 deletions

View File

@ -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: