diff options
author | Prabhu Ramachandran | 2017-01-16 21:59:30 +0530 |
---|---|---|
committer | GitHub | 2017-01-16 21:59:30 +0530 |
commit | 10b4635ab0684a698382a3e167ef546bb3ff97b7 (patch) | |
tree | cf75812acecffeb81081c9ba2632dfca481dd2ad /yaksh/views.py | |
parent | d03826261adae349151e28d09ea2e2f85e168909 (diff) | |
parent | 67ed7f2a9bd137d746f1535cd3faee4d42bdbc9b (diff) | |
download | online_test-10b4635ab0684a698382a3e167ef546bb3ff97b7.tar.gz online_test-10b4635ab0684a698382a3e167ef546bb3ff97b7.tar.bz2 online_test-10b4635ab0684a698382a3e167ef546bb3ff97b7.zip |
Merge pull request #177 from adityacp/fix_management_commands
Fix management commands
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 14faa9b..4be2fc1 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -267,7 +267,7 @@ def show_all_questionpapers(request, questionpaper_id=None): @login_required -def prof_manage(request): +def prof_manage(request, msg=None): """Take credentials of the user with professor/moderator rights/permissions and log in.""" user = request.user @@ -301,7 +301,7 @@ def prof_manage(request): temp = paper, answer_papers, users_passed, users_failed users_per_paper.append(temp) context = {'user': user, 'users_per_paper': users_per_paper, - 'trial_paper': trial_paper + 'trial_paper': trial_paper, 'msg': msg } return my_render_to_response('yaksh/moderator_dashboard.html', context, context_instance=ci) return my_redirect('/exam/login/') @@ -1246,8 +1246,7 @@ def create_demo_course(request): msg = "Created Demo course successfully" else: msg = "Demo course already created" - context = {'msg': msg} - return my_render_to_response('manage.html', context, context_instance=ci) + return prof_manage(request, msg) @login_required |