<p class="tags">
Tags:
{% for tag in quote.tags.all %}
- <a href="{% url 'quotes:tags' tag.id %}" class="tag_link">
- {{ tag.tag }}
- </a>
- {% endfor %}
+ <a href="{% url 'quotes:tags' tag.id %}" class="tag_link"
+ >{{ tag.tag }}</a
+ >{% if not forloop.last %}, {% endif %}
+ {% endfor %}
</p>
{% endif %}