diff options
author | Jay Parikh | 2013-03-18 15:11:15 +0530 |
---|---|---|
committer | Jay Parikh | 2013-03-18 15:11:15 +0530 |
commit | c12f20984aa75751af89a0d6213bc35924bc593b (patch) | |
tree | 4608e7b6088a7fb81fc5f9e2e1c021df45eddad4 /testapp/exam/forms.py | |
parent | 65d4498ff96090fecc569440f0cd1499ae0f6b69 (diff) | |
download | online_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.gz online_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.bz2 online_test-c12f20984aa75751af89a0d6213bc35924bc593b.zip |
Added code snippets for questions
Diffstat (limited to 'testapp/exam/forms.py')
-rw-r--r-- | testapp/exam/forms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index f48a674..9bcd04f 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -133,6 +133,7 @@ class QuestionForm(forms.Form): type = forms.CharField(max_length=8, widget=forms.Select(choices=QUESTION_TYPE_CHOICES)) active = forms.BooleanField(required=False) tags = TagField(widget=TagAutocomplete(),required=False) + snippet = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1}),required=False) def save(self): summary = self.cleaned_data["summary"] |