From b130f0298a222a667fc771bc332e6b201ca7d114 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 22 Dec 2015 14:19:17 +0100 Subject: [PATCH] lingo: include query string in amount computation (#9174) --- combo/apps/lingo/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py index 44b3ac8a..32f8a602 100644 --- a/combo/apps/lingo/views.py +++ b/combo/apps/lingo/views.py @@ -69,6 +69,7 @@ class AddBasketItemApiView(View): extra = request_body.get('extra', {}) item = BasketItem(amount=0) + item.amount = sum([Decimal(x) for x in request.GET.getlist('amount')]) if request_body.get('amount'): item.amount += self.get_amount(request_body['amount'])