[Answered ]-Print dict in Django Template

1👍

row_data is a list of dictionaries, so you access this with:

{% for data in row.row_data %}
    <td colspan="{{ data.colspan }}">{{ data.booking_obj }}</td>
{% endfor %}

Here data is thus a dictionary, and we access the corresponding values with data.colspan and data.booking_obj.

Leave a comment