From 654982d7787e8e9b311d40b3ad4d9a21976888f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 5 Jun 2015 17:05:30 +0200 Subject: [PATCH] lingo: allow passing multiple amounts (#7471) --- combo/apps/lingo/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py index 8c1dc69e..14b06977 100644 --- a/combo/apps/lingo/views.py +++ b/combo/apps/lingo/views.py @@ -60,7 +60,7 @@ class AddBasketItemApiView(View): request_body = json.loads(self.request.body) item = BasketItem() - item.amount = Decimal(request.GET.get('amount')) + item.amount = sum([Decimal(x) for x in request.GET.getlist('amount')]) try: if request.GET.get('NameId'):