I have the following data in the template
{u'D - content a': [<Person: first_name last_name>, <Person: first_name last_name>, <Person: first_name last_name>],
u'D - contant b': [<Person: first_name last_name>],
u'D - content c': [<Person: first_name last_name>]
}
And I'd like to have it like this:
h2 -> Content a
list with three people
h2 -> content b
list with one person
h3 -> content c
list with one person
But I can't find out how two write it. My attempt:
{% for key, value in persons %}
<h2>{{ key }}</h2>
{{ value }}
{% endfor %}