From 3970555cf11dd05fd1be0a1d3843dc8a317cd0c9 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 26 Feb 2018 21:54:11 +0100 Subject: [PATCH] shorten the line a bit --- django/didgeridoo/webshop/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index f07f88a..077e77e 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -325,7 +325,8 @@ def checkout(request): request.session['currency'] = None else: currency = request.session['currency'] - exchange_rate = ExchangeRate.objects.filter(name=currency).latest('date') + exchange_rate = rate.objects.filter(name=currency).latest('date') + # Here we handle all POST Operations: if request.method == 'POST': print('checkout post', request.POST)