From b8ed4acbfa53cc72b82b851f1ec2e28c5e821384 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 25 Nov 2016 17:06:45 +0100 Subject: [PATCH] school email in csv --- wtem/templates/wtem/admin_report.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wtem/templates/wtem/admin_report.csv b/wtem/templates/wtem/admin_report.csv index c436b2c..32d7d27 100644 --- a/wtem/templates/wtem/admin_report.csv +++ b/wtem/templates/wtem/admin_report.csv @@ -1,2 +1,2 @@ -{% load wtem_csv %}email,nazwisko,imie,szkola,suma{% for exercise_id in exercise_ids %}{% csv_header exercise_id submissionsSet %}{% endfor %}{% for submission in submissionsSet.submissions %} -{{submission.email}},{{submission.last_name}},{{submission.first_name}},"{{submission.school}}",{{submission.final_result_as_string}}{% for exercise_id in exercise_ids %},{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %} \ No newline at end of file +{% load wtem_csv %}email,nazwisko,imie,szkola_email,szkola,suma{% for exercise_id in exercise_ids %}{% csv_header exercise_id submissionsSet %}{% endfor %}{% for submission in submissionsSet.submissions %} +{{submission.email}},{{submission.last_name}},{{submission.first_name}},{{submission.contact.body.school_email}},"{{submission.school}}",{{submission.final_result_as_string}}{% for exercise_id in exercise_ids %},{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %} \ No newline at end of file -- 2.20.1