{% load timeslots %} {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
{{ default_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 %} {% if timeslot.end.hour > timeslot.start.hour %}
{{ timeslot.show.name }}
{% else %}
{{ timeslot.show.name }}
{% endif %} {% endif %} {% if not forloop.first and not forloop.last %}
{% if timeslot.show == default_show %}
{{ default_show.name }}
{% else %}
{{ timeslot.show.name }}
{% endif %}
{% 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 %}
{{ default_show.name }}
{% endif %} {% if forloop.last and timeslot.end != "06:00" and timeslot.show != default_show %} {% if timeslot.end.hour < timeslot.start.hour %}
{{ timeslot.show.name }}
{% else %}
{{ timeslot.show.name }}
{% endif %} {% endif %} {% if forloop.last and timeslot.end != timeslot.get_next_by_start.start %}
{{ default_show.name }}
{% endif %}