assign the list before the view starts
Unassigned variables cause the cart to crash at the first run.
This commit is contained in:
parent
cfa588f3b3
commit
935c97de46
|
@ -220,6 +220,8 @@ def cart(request):
|
||||||
totalprice_list = []
|
totalprice_list = []
|
||||||
total = 0
|
total = 0
|
||||||
user_name = request.user
|
user_name = request.user
|
||||||
|
cart_position_list_zip = []
|
||||||
|
|
||||||
# here we configure the users Currency:
|
# here we configure the users Currency:
|
||||||
if 'currency' not in request.session:
|
if 'currency' not in request.session:
|
||||||
request.session['currency'] = None
|
request.session['currency'] = None
|
||||||
|
|
Loading…
Reference in New Issue