aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-30 10:21:43 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-30 10:21:43 +0300
commitec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7 (patch)
treeea531f9d57e989bdd61c475bf195e1de2934b776 /servo/views
parentf0ee747761f0f929ab25b58a071e0a34dd763527 (diff)
downloadServo-ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7.tar.gz
Servo-ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7.tar.bz2
Servo-ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7.zip
Only reserve reported products
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/order.py3
1 files changed, 1 insertions, 2 deletions
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