I want to a do for loop like (for int x = 0; x < 3; x++) in a django template. How should I do it? Pseudo code looks like the following:
{% for Summary in Summary_list %}
{% ifchanged Summary.bu_id %}
</tr>
<tr>
<td>{{Summary.bu.version}}</td>
{% if Summary.platform_id != 1 %}
{% for x less than Summary.platform_id %}
<td><center>-</center></td>
{% x++ %}
{# How Should I do this part? #}
<td> <center>{{Summary.successCount}}</center></td>
{% else %}
<td><center> {{Summary.successCount}}</center></td>
{% endifchanged %}
{% endfor %}
Thank you very much!