allow passing multiple amounts (#7471)

This commit is contained in:
Frédéric Péters 2015-06-05 17:05:30 +02:00
parent c63627ee7f
commit e3ab0efe3e
1 changed files with 1 additions and 1 deletions

View File

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