lingo: include query string in amount computation (#9174)

This commit is contained in:
Serghei Mihai 2015-12-22 14:19:17 +01:00 committed by Frédéric Péters
parent a2fe92d59d
commit b130f0298a
1 changed files with 1 additions and 0 deletions

View File

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