{% for contact in item %} {% spaceless %} {% include "partials/contact_as_single_addr.html" with item=contact %} {% if not forloop.last %}, {% endif %} {% endspaceless %} {% endfor %}