summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-11-01 10:58:27 +0530
committerGitHub2016-11-01 10:58:27 +0530
commit710d620834a424cc8aa2a4db099437b160f86b92 (patch)
tree7e2a2a242aa77e6b88c3a9702f235f359bd71dcb /yaksh/views.py
parentf563640af941a50642dc5eb6e63b1d63a1685046 (diff)
parentd60b49896d46853b5d36f4affd6a68f5ecfd8771 (diff)
downloadonline_test-710d620834a424cc8aa2a4db099437b160f86b92.tar.gz
online_test-710d620834a424cc8aa2a4db099437b160f86b92.tar.bz2
online_test-710d620834a424cc8aa2a4db099437b160f86b92.zip
Merge pull request #150 from ankitjavalkar/view-test-update1
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 4706222..f91342d 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):
@@ -584,7 +584,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},