{% regroup samples by project as project_list %} {% for project in project_list %} {{ project.grouper }}