In template, I try to use:
{% for i in range(object.punctuation) %}
<i class="material-icons">star</i>
{% endfor %}
Where object.punctuation is an integer with the rating that the object has. Visually this punctuation needs to be represented with stars. But I get:
Could not parse the remainder: '(object.punctuation)' from 'range(object.punctuation)'
As cited in: https://jbmoelker.github.io/jinja-compat-tests/functions/range/#stop looks like range function in jinja has problems with django integration. Is there an alternative to accomplish what I'm trying to do?