From cc318dfa9ba8a38d82a2edd1490cad586560c9d3 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Wed, 6 Apr 2016 16:09:57 +1000 Subject: [PATCH] Fixes tests --- registrasion/controllers/product.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/registrasion/controllers/product.py b/registrasion/controllers/product.py index d25a79bb..b49d5569 100644 --- a/registrasion/controllers/product.py +++ b/registrasion/controllers/product.py @@ -38,9 +38,10 @@ class ProductController(object): if cls(product).user_quantity_remaining(user) > 0 ) - failed_conditions = set(ConditionController.test_enabling_conditions( + failed_and_messages = ConditionController.test_enabling_conditions( user, products=passed_limits - )) + ) + failed_conditions = set(i[0] for i in failed_and_messages) out = list(passed_limits - failed_conditions) out.sort(key=lambda product: product.order)