{% for item in media_set %} {% include 'blocks/media-item.html' with item=item %} {% endfor %}