[Answered ]-Django show image list in table from ManyToMany field

1👍

This should mean the images should all be under one td block, so just put the td outside of the loop:

        <td>
        {% for team in job.hiring_team.all %}
            {% if team.image %}
                <img src="{{ team.image.url }}" class="rounded-circle img-fluid-80" alt="{{ team }}">
            {% endif %}
        {% endfor %}
        <td>

Leave a comment