{% for group in groups %} {% include "company-mgr/company-mgr-group.html" with {'group': group, 'teamleader': teamleader[group.id]} %} {% endfor %}