Get dict’s value by key name in Django Tempaltes

If team_gpds is querysets then you can loop through querysets as

{% for gpd in team_gpds %}
   <tr>
       <td><a class="nav-link" href="/gpd/{{gpd.employee.end_user_id}}">GPD</a></td>
       <td>{{gpd.employee}}</td>
       <td>{{gpd.gpd_year}}</td>
       <td>{{gpd.gpd_start}}</td>
       <td>{{gpd.gpd_end}}</td>
       <td>{{gpd.gpd_status}}</td>
    </tr>
{% endfor %}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top