{% extends "base.html" %} {% block content %} {% for item in items %} {% ifchanged item.week %}

{{ item.year }} week {{ item.week }}

{% endifchanged %} {% include "listitem.html" with item=item %} {% endfor %} {% endblock %}