{% load timeslots %} {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
{{ default_show.name }}
{% endif %} {% if forloop.first and timeslot.start == timeslot.get_next_by_start.end and timeslot.start != "06:00" %}
{{ timeslot.show.name }}
{% endif %} {% if forloop.first and timeslot.start != "06:00" and timeslot.show == default_show %}
{{ timeslot.show.name }}
{% endif %} {% if forloop.first and timeslot.start != "06:00" and timeslot.show != default_show %}
{{ timeslot.show.name }}
{% endif %} {% if not forloop.first and not forloop.last %}
{{ timeslot.show.name }}
{% if timeslot.end != timeslot.get_next_by_start.start %}
{{ default_show.name }}
{% endif %} {% endif %} {% if forloop.last and timeslot.end != "06:00" and timeslot.show == default_show %}
{{ timeslot.show.name }}
{% endif %} {% if forloop.last and timeslot.end != "06:00" and timeslot.show != default_show %}
{{ timeslot.show.name }}
{% endif %} {% if forloop.last and timeslot.end != timeslot.get_next_by_start.start %}
{{ default_show.name }}
{% endif %}