Filters items_purchased by category.

Fixes #74
This commit is contained in:
Christopher Neugebauer 2016-09-13 12:28:48 +10:00
parent f5e303584b
commit a27264ac92

View file

@ -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