{% load timeslots %} {% if forloop.first %} {% if timeslot.start|time:"Hi" <= "0600" or timeslot.end.hour < timeslot.start.hour %} {# the show starts at or before 6 am or yesterday #}
{% else %} {# the show doesn´t start at or before 6 am -> default_show until the start of the show #}