diff options
Diffstat (limited to 'exam/views.py')
-rw-r--r-- | exam/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 = [] |