From ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 30 Sep 2015 10:21:43 +0300 Subject: Only reserve reported products --- servo/views/order.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'servo/views') diff --git a/servo/views/order.py b/servo/views/order.py index 3d9adad..1712ba0 100644 --- a/servo/views/order.py +++ b/servo/views/order.py @@ -644,8 +644,7 @@ def reserve_products(request, pk): location = request.user.get_location() if request.method == 'POST': - - for p in order.serviceorderitem_set.all(): + for p in order.products.all(): p.reserve_product() msg = _(u"Products of order %s reserved") % order.code -- cgit v1.2.3