{% for code in codes %} {% if forloop.count != 1 and not forloop.last %}
{% endif %} {% endfor %}