move the person up

This commit is contained in:
Andreas Zweili 2018-02-26 22:23:15 +01:00
parent 6c172405ca
commit a232ca414c
1 changed files with 1 additions and 1 deletions

View File

@ -321,6 +321,7 @@ def checkout(request):
cart_position_list = []
totalprice_list = []
total = 0
person = Person.objects.get(user=request.user.id)
checkout_form = CheckoutForm()
if 'currency' not in request.session:
@ -378,7 +379,6 @@ def checkout(request):
Seams like your cart was
not existent before. How come? """
total = sum(totalprice_list)
person = Person.objects.get(user=request.user.id)
return render(request, 'webshop/checkout.html',
{'cart_position_list': cart_position_list,