summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2020-03-13 16:31:42 +0530
committeradityacp2020-03-13 16:31:42 +0530
commitfc12aa3d0309d0ac76c29acea52b2bf917605fad (patch)
tree09a711de043aa5af7c23f816bd7f3959a19e6918
parent02d3eb634fe105a02318ed3571e4d479415c8428 (diff)
downloadonline_test-fc12aa3d0309d0ac76c29acea52b2bf917605fad.tar.gz
online_test-fc12aa3d0309d0ac76c29acea52b2bf917605fad.tar.bz2
online_test-fc12aa3d0309d0ac76c29acea52b2bf917605fad.zip
Fix redirection while saving exercise
-rw-r--r--yaksh/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 23c5a88..c0693d7 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -390,7 +390,7 @@ def add_exercise(request, quiz_id=None, course_id=None):
else:
form = ExerciseForm(instance=quiz)
context["exercise"] = quiz
- context["course_id"] = course_id
+ context["course_id"] = course_id
context["form"] = form
return my_render_to_response(request, 'yaksh/add_exercise.html', context)