File diff 760996588372 → a4d684f444e7
registrasion/controllers/category.py
Show inline comments
...
 
@@ -50,7 +50,7 @@ class CategoryController(object):
 
        items = rego.ProductItem.objects.filter(
 
            cart__in=carts,
 
            product__category=self.category,
 
        )
 

	
 
        cat_count = items.aggregate(Sum("quantity"))["quantity__sum"] or 0
 
        cat_limit - cat_count
 
        return cat_limit - cat_count