[Answer]-Indexing a QuerySet array in django templates

1👍

You don’t iterate like that in Python or in Django templates: you iterate through the list itself.

{% for customer in cust %}
<tr>
    <td>{{customer.customer_id}}</td>
    <td>{{customer.feedback_detail}}</td>
</tr>
{% endfor %}

Leave a comment