{% for note in notes %} {{ note.person }} ({{ note.late }}'){% if not forloop.last %},{% endif %} {% endfor %}