From 4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Mon, 21 Nov 2011 15:46:54 +0530 Subject: 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. --- exam/views.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'exam/views.py') diff --git a/exam/views.py b/exam/views.py index a998606..729b1e6 100644 --- a/exam/views.py +++ b/exam/views.py @@ -269,6 +269,7 @@ def get_quiz_data(quiz_id): paper['name'] = user.get_full_name() paper['username'] = user.username paper['rollno'] = str(profile.roll_number) + paper['institute'] = str(profile.institute) paper['email'] = user.email qa = q_paper.questions_answered.split('|') answered = ', '.join(sorted(qa)) @@ -343,6 +344,10 @@ def get_user_data(username): data['email'] = user.email data['rollno'] = profile.roll_number if profile else '' data['name'] = user.get_full_name() + data['institute'] = profile.institute if profile else '' + data['department'] = profile.department if profile else '' + data['position'] = profile.position if profile else '' + data['name'] = user.get_full_name() data['date_joined'] = str(user.date_joined) data['last_login'] = str(user.last_login) papers = [] -- cgit