diff --git a/registrasion/controllers/cart.py b/registrasion/controllers/cart.py index 9f27ab49b4c9f8d10468f6e0366559f3200f19e1..3e417f1a459219a43624533305b560bcca273d92 100644 --- a/registrasion/controllers/cart.py +++ b/registrasion/controllers/cart.py @@ -205,12 +205,11 @@ class CartController(object): to_add = sum(i[1] for i in by_cat[category]) if to_add > limit: - errors.append(( - category, - "You may only have %d items in category: %s" % ( - limit, category.name, - ) - )) + message = "You may only have %d items in category: %s" % ( + limit, category.name, + ) + for product, quantity in by_cat[category]: + errors.append((product, message)) # Test the flag conditions errs = FlagController.test_flags(