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)