{% firstof {{ obj.description }} {{ obj.name }} %} Components: {% for comp in obj.component_set.all %}{{ comp.name }}{% if not forloop.last %}, {% endif %}{% endfor %}