only execute the currency part if it exists in the session

This commit is contained in:
Andreas Zweili 2018-02-26 21:55:15 +01:00
parent f62a6a91d9
commit 494ce66631
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ def checkout(request):
cart_position_list = list(cart_positions)
# enumerate the list of articles and loop over items:
for idx, cart_position in enumerate(cart_position_list):
if currency:
if request.session['currency']:
# get currencyname to display:
currency_name = ExchangeRate_name.objects.get(id=currency)
# get exchange_rate multiplyed: