[Answered ]-How to convert Django Queryset into a list in template?

1👍

You can use join:

{% with allbuilding=hira.Building.all %}
     <td>{{ allbuilding|join:", "  }}</td>
{% endwith %}
👤ruddra

Leave a comment