{{ match_formset.management_form }}
{{ bye_formset.management_form }}
{% regroup match_formset.forms by instance.datetime as match_forms %}
{% for tab in match_forms %}
{% for form in tab.list %}
{% with match=form.instance %}
{% with home=match.get_home_team away=match.get_away_team %}
{% endwith %}
{% endwith %}
{% endfor %}