I was trying to iterate a list_length
in a for loop. The list_length
is an int
object which is passed as a context variable to the template. But when I try to do that it gives this typeError
. Can someone help?
{% for i in list_length %}
<tr>
<td>{{ i }}</td>
</tr>
{% endfor %}