From a27264ac92898c1d09a14536e5f76b1060b90c2c Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 13 Sep 2016 12:28:48 +1000 Subject: [PATCH] Filters items_purchased by category. Fixes #74 --- registrasion/controllers/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registrasion/controllers/item.py b/registrasion/controllers/item.py index f2d0a2ae..9a1a9eb2 100644 --- a/registrasion/controllers/item.py +++ b/registrasion/controllers/item.py @@ -84,7 +84,7 @@ class ItemController(object): aggregating like products from across multiple invoices. ''' - return self._items(commerce.Cart.STATUS_PAID) + return self._items(commerce.Cart.STATUS_PAID, category=category) def items_pending(self): ''' Gets all of the items that the user has reserved, but has not yet