[Answered ]-How to count in template (not forloop)?

2👍

âś…

When confronted with this problem, I would pass a “list of visible items” to the template. If you need both lists on the page for some reason, then pass both lists to the template. One is just a filtered queryset of another.

Leave a comment