{% regroup object_list by show as show_list %}{% for show in show_list %} {{ show.grouper.title }} {{ show.list.0.date|date:"Y-m-d" }}T{{ show.list.0.date|date:"H:i:s" }}Z {% for author in show.grouper.author.all %}{% if forloop.first %}{% else %}{% if forloop.last %} and {% else %}, {% endif %}{% endif %}{% if author.first_name or author.last_name %}{% if author.first_name and author.last_name %}{{ author.first_name }} {{ author.last_name }}{% endif %}{% if author.first_name and not author.last_name %}{{ author.first_name }}{% endif %}{% if author.last_name and not author.first_name %}{{ author.last_name }}{% endif %}{% else %}{{ author.username }}{% endif %}{% endfor %} urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 {% for episode in show.list %} {% for enclosure in episode.enclosure_set.all %} {{ episode.title }}{% if enclosure.title %}: {{ enclosure.title }}{% endif %} tag:{{ enclosure.file.url }},{{ episode.title }},{{ enclosure.title }},{{ episode.date|date:"H:i:s" }},{{ enclosure.id }} {{ episode.date|date:"Y-m-d" }}T{{ episode.date|date:"H:i:s" }}Z {% if episode.summary %}{{ episode.summary }}{% else %}{{ episode.description }}{% endif %} {% endfor %} {% endfor %} {% endfor %}