{% for book in books %} {% if forloop.counter0|divisibleby:"5" %}
{% endif %}
{% endfor %}