diff options
author | hardythe1 | 2012-02-16 15:57:39 +0530 |
---|---|---|
committer | hardythe1 | 2012-02-16 15:57:39 +0530 |
commit | 7df150b5a12f4b96041d9fc79ec24a09a8cf5e4c (patch) | |
tree | 348265740aef366a678f19723b3184745c4f66f7 /testapp/exam/views.py | |
parent | 467adb5d403e7dd29a83f44d06c80cdca8b4e7a1 (diff) | |
download | online_test-7df150b5a12f4b96041d9fc79ec24a09a8cf5e4c.tar.gz online_test-7df150b5a12f4b96041d9fc79ec24a09a8cf5e4c.tar.bz2 online_test-7df150b5a12f4b96041d9fc79ec24a09a8cf5e4c.zip |
Form to add a new question
Diffstat (limited to 'testapp/exam/views.py')
-rw-r--r-- | testapp/exam/views.py | 3 |
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', |