diff options
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
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}, |