[Answer]-How to output dictionary of forms in django template

1👍

Since the roles dictionary contains both the members (as keys) and forms (as values), why do you need to iterate through staff at all? Just iterate through roles.

{% for member, form in roles.items %}
    {{ member }} : {{ form }}
{% endfor %}

Leave a comment