summaryrefslogtreecommitdiff
path: root/testapp/exam/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam/views.py')
-rw-r--r--testapp/exam/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 1c5d2e5..0e862ca 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -96,7 +96,8 @@ def add_question(request):
form = AddQuestionForm(request.POST)
if form.is_valid():
data = form.cleaned_data
- return my_redirect("/exam/start/")
+ form.save()
+ return my_redirect("/exam/addquestion/")
else:
return my_render_to_response('exam/add_question.html',