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/views.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/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 = [] |