From 754244da53f7e0a63c272ce6d1ffb15c1d5be0ae Mon Sep 17 00:00:00 2001 From: prathamesh Date: Mon, 8 Jul 2013 11:22:01 +0530 Subject: Added few questions. Made changes to fix minor bugs which were found during testing. --- testapp/exam/forms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testapp/exam/forms.py') diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index 8506de2..917bea7 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -167,6 +167,7 @@ class QuestionForm(forms.Form): options = self.cleaned_data['options'] type = self.cleaned_data["type"] active = self.cleaned_data["active"] + snippet = self.cleaned_data["snippet"] new_question = Question() new_question.summary = summary @@ -176,4 +177,5 @@ class QuestionForm(forms.Form): new_question.options = options new_question.type = type new_question.active = active + new_question.snippet = snippet new_question.save() -- cgit