From b74f3ee585df6f4f45b3a50842f5ffc7ba0d3677 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 4 Feb 2018 20:38:35 +0100 Subject: [PATCH] remove unneeded line --- django/didgeridoo/webshop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index be532f1..79f7a1c 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -235,7 +235,7 @@ def cart(request): if not 'currency' in request.session: request.session['currency'] = None - currency = request.session['currency'] + if request.method == 'POST': currencies_form = CurrenciesForm(request.POST) if currencies_form.is_valid():