Changeset - a27264ac9289
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-13 02:28:48
chrisjrn@gmail.com
Filters items_purchased by category.

Fixes #74
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
registrasion/controllers/item.py
Show inline comments
...
 
@@ -79,17 +79,17 @@ class ItemController(object):
 
            category (Optional[models.inventory.Category]): the category
 
                of items to restrict to.
 

	
 
        Returns:
 
            [ProductAndQuantity, ...]: A list of product-quantity pairs,
 
                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
 
        paid for.
 

	
 
        Returns:
 
            [ProductAndQuantity, ...]: A list of product-quantity pairs for the
 
                items that the user has not yet paid for.
0 comments (0 inline, 0 general)