I would like to make a condition on a query_set length in my template.
My queryset is named “favoris”
Here is what I tried:
{% if favoris.count>=5 %}
my html
{% endif %}
And i get this error:
TemplateSyntaxError at /mysite/myview
Could not parse the remainder: '==5' from 'favoris.count==5'
Any idea on how to do that? Thank you for your help
You should write whitespaces between constant and operator: