shorten the line a bit

This commit is contained in:
Andreas Zweili 2018-02-26 21:54:11 +01:00
parent 691fdc12f5
commit 3970555cf1
1 changed files with 2 additions and 1 deletions

View File

@ -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)