summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorankitjavalkar2016-10-26 15:14:13 +0530
committerankitjavalkar2016-10-27 10:58:10 +0530
commitd60b49896d46853b5d36f4affd6a68f5ecfd8771 (patch)
treef43bb9c73e282aed7064dd47e52baedc668f3f33 /yaksh/views.py
parent08d8478a6a57991b0130c5610db6efa7bc9e5a66 (diff)
downloadonline_test-d60b49896d46853b5d36f4affd6a68f5ecfd8771.tar.gz
online_test-d60b49896d46853b5d36f4affd6a68f5ecfd8771.tar.bz2
online_test-d60b49896d46853b5d36f4affd6a68f5ecfd8771.zip
Add views test for add_course view
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 68e641e..dc6f2fa 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -299,7 +299,7 @@ def show_all_questionpapers(request, questionpaper_id=None):
@login_required
def prof_manage(request):
"""Take credentials of the user with professor/moderator
-rights/permissions and log in."""
+ rights/permissions and log in."""
user = request.user
ci = RequestContext(request)
if user.is_authenticated() and is_moderator(user):
@@ -586,7 +586,7 @@ def add_course(request):
new_course = form.save(commit=False)
new_course.creator = user
new_course.save()
- return my_render_to_response('manage.html', {'course': new_course})
+ return my_redirect('/exam/manage/')
else:
return my_render_to_response('yaksh/add_course.html',
{'form': form},