{% for vm_name in record.used_by %} {{ vm_name }}{% if not forloop.last %}, {% endif %} {% endfor %}