diff options
author | Prabhu Ramachandran | 2011-11-21 15:46:54 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-21 15:46:54 +0530 |
commit | 4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef (patch) | |
tree | fe5219e4f7a589c67b2fe2a595bef5aa94fcbb7a /exam/management/commands/results2csv.py | |
parent | 75c5904f27dc82d9445804aa5a9543dae40fcdf2 (diff) | |
download | online_test-4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef.tar.gz online_test-4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef.tar.bz2 online_test-4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef.zip |
ENH: Adding dept/insti/pos fields in profile.
Adding institute/department/position fields, prettifying form with some
help text. Also prettified monitor and user data. Updated commands to
show/dump new fields.
Diffstat (limited to 'exam/management/commands/results2csv.py')
-rw-r--r-- | exam/management/commands/results2csv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exam/management/commands/results2csv.py b/exam/management/commands/results2csv.py index 1adf442..f1da1a8 100644 --- a/exam/management/commands/results2csv.py +++ b/exam/management/commands/results2csv.py @@ -11,11 +11,12 @@ from exam.views import get_quiz_data from exam.models import Quiz result_template = Template('''\ -"name","username","rollno","email","answered","total","attempts" +"name","username","rollno","email","answered","total","attempts","position","department","institute" {% for paper in paper_list %}\ "{{ paper.name }}","{{ paper.username }}","{{ paper.rollno }}",\ "{{ paper.email }}","{{ paper.answered }}",{{ paper.total }},\ -{{ paper.attempts }} +{{ paper.attempts }},"{{ paper.position }}",\ +"{{ paper.department }}","{{ paper.institute }}" {% endfor %}\ ''') |