{% load i18n %}
{% regroup teams by club_id as clubs %} {% for club in clubs %} {% for team in club.list %} {% endfor %} {% endfor %}
Club Team Division Players Non players
{% ifchanged team.club_id %} {{ team.club.title }} {% endifchanged %} {{ team.title }} {{ team.division.title }} {{ team.player_count|default_if_none:0 }} {{ team.non_player_count|default_if_none:0 }}