[Fixed]-How to fix context dict in CBV view in django?

1πŸ‘

βœ…

In last four statements you are not using dif but difs:

{% for dif in difs %}
    <tr>
        <td>{{ dif.depos }}</td>
        <td>{{ dif.creds }}</td>
        <td>{{ dif.date }}{{ difs.df }}</td>   <--- should be dif.df
        <td>{{ difs.df }}</td>                 <--- should be dif.df 
        <td>{{ difs.dc }}</td>                 <--- should be dif.dc 
        <td>{{ difs.pr }}</td>                 <--- should be dif.pr
    </tr>
{% endfor %}
πŸ‘€AKS

Leave a comment