{% extends "base.html" %} {% block content %}

    {% for o in orders %} {% for item in o.orderitem_set.all %}
  1. {{ item.icecream.name }} with {% for scoop in item.scoops.all %} {% if forloop.last %} and {{ scoop }}. {% else %} {{ scoop }}, {% endif %} {% endfor %}
  2. {% endfor %} {% endfor %}
{% endblock %} {% block stat_orders %}{{ stat_orders }}{% endblock%} {% block stat_customers %}{{ stat_customers }}{% endblock%} {% block stat_incomes %}{{ stat_incomes }}{% endblock%} {% block table_lists %} {% endblock %}