{% extends "base.html" %}

{% block content %}


{% for section in sections %}

    <p>{{ section.title }}</p>

{% endfor %}


{% endblock %}

{% extends "base.html" %}

{% block title %}Hansard{% endblock %}


{% block content %}


{% for section in sections %}

    <h2>{{ section.title }}</h2>

    {% for subsection in section.get_children %}

        <p>
            <a href="{{ subsection.get_absolute_url }}">{{ subsection.title }}</a>
            ({{ subsection.speech_set.count }})
        </p>

    {% endfor %}


{% endfor %}


{% endblock %}

Add subsections and speech counts to the HTML
Add subsections and speech counts to the HTML
