diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-30 10:21:43 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-30 10:21:43 +0300 |
commit | ec6276e2fb2bb0785f14469bbe8eb292f4a6e6b7 (patch) | |
tree | ea531f9d57e989bdd61c475bf195e1de2934b776 /servo/views | |
parent | f0ee747761f0f929ab25b58a071e0a34dd763527 (diff) | |
download | Servo-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.py | 3 |
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 |