[Answered ]-How to get value from dict in a loop in a django template

1👍

Try this:

{% for key, value in entrata.corrispettivi.items %}
   <tr>
       <th>IVA {{key}} %</th>
       <td>{{value.totale}}</td>
       <td>{{value.imposta}}</td>
       <td>{{value.imponibile}}</td>
   </tr>
{% endfor %}

Leave a comment