>
>
> Did this ever get resolved?  Is there a correct way to override the built 
in page processors?  I ran into a similar situation where I wanted to add a 
list of the product counts for each category on the product pages.  If I 
could override the Category page processor, this would be a two line change.

categories = 
Category.objects.published().annotate(num_products=Count('products__available'))
return {"products": products, "child_categories": child_categories, 
"categories": categories}


Then I can just loop on categories within the template page to show the users a 
list of categories and the number of products in each category.


Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to