{% load opening_hours %} {% with periods=store.opening_periods.all %} {% if periods|length %} {% regroup periods by weekday as grouped_periods %} {% for weekday in grouped_periods %} {% endfor %}
{{ weekday.list.0|printable_weekday }} {% for period in weekday.list %} {{ period|printable_period:"H:i" }}
{% endfor %}
{% endif %} {% endwith %}