aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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