This Django Template Tag is Killing Your Performance
Avoid performance pitfalls by replacing the length template filter with
count() for QuerySet objects to prevent excessive memory and database usage.