Add student email ID, first and last name to evaluation records page.
Fixes issue 1559.
diff --git a/app/soc/modules/gsoc/views/grading_record_details.py b/app/soc/modules/gsoc/views/grading_record_details.py
index 96455a8..8ac6efb 100644
--- a/app/soc/modules/gsoc/views/grading_record_details.py
+++ b/app/soc/modules/gsoc/views/grading_record_details.py
@@ -117,7 +117,20 @@
'Present' if rec.student_record else 'Missing'
list_config.addColumn('student_record', 'Survey by Student', stud_rec_func)
stud_id_func = lambda rec, *args: rec.parent().parent().link_id
- list_config.addColumn('student_id', 'Student Link Id', stud_id_func, hidden=True)
+ list_config.addColumn('student_id', 'Student Link Id', stud_id_func,
+ hidden=True)
+
+ stud_email_func = lambda rec, *args: rec.parent().parent().email
+ list_config.addColumn('student_email', 'Student Email Id',
+ stud_email_func, hidden=True)
+
+ stud_fn_func = lambda rec, *args: rec.parent().parent().given_name
+ list_config.addColumn('student_fn', 'Student First Name',
+ stud_fn_func, hidden=True)
+
+ stud_ln_func = lambda rec, *args: rec.parent().parent().surname
+ list_config.addColumn('student_ln', 'Student Last Name',
+ stud_ln_func, hidden=True)
list_config.addPostButton('update_records', 'Update Records', '', [0,'all'], [])
list_config.addPostButton('update_projects', 'Update Projects', '', [0,'all'], [])