i have an table in django and try to auto increment it's serial no. in custom template for loop is used for the variables.
custom template
{% for i in getodeskview %}
<tr>
<td> 1. </td>
<td>{{ i.odesk_id }}</td>
<td>{{ i.hours }}</td>
<td>{{ i.feedback }}</td>
<td>
<a href="/odesk/?editodeskform={{i.id}} " title="Edit"><i class="splashy-document_letter_edit"></i></a>
<!---- <a href="/hours/?addhid={{i.app_id}}" title="Interview"><i class="splashy-document_letter_okay"></i></a>----->
<a href="/deleteodesk/?dltodid={{i.id}}" title="Remove"><i class="splashy-document_letter_remove"></i></a>
</td>
</tr>
{% endfor %}
how to increment the values.