diff options
author | jayparikh111 | 2012-03-21 17:11:33 +0530 |
---|---|---|
committer | jayparikh111 | 2012-03-21 17:11:33 +0530 |
commit | 2f21a4a007ae9b51fadd7832fe90506f19e309e2 (patch) | |
tree | 2e81dbcd1e8310b647edb1f7d7a6e09a021ed3f6 /testapp/exam/forms.py | |
parent | e524bef336df95fd307d045af37c379bccf3ea14 (diff) | |
download | online_test-2f21a4a007ae9b51fadd7832fe90506f19e309e2.tar.gz online_test-2f21a4a007ae9b51fadd7832fe90506f19e309e2.tar.bz2 online_test-2f21a4a007ae9b51fadd7832fe90506f19e309e2.zip |
changes for adding tags in questions
Diffstat (limited to 'testapp/exam/forms.py')
-rw-r--r-- | testapp/exam/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index 2a1ae6d..1a25312 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -3,7 +3,7 @@ from exam.models import Profile,Quiz,Question from django.contrib.auth import authenticate from django.contrib.auth.models import User - +from taggit.forms import * from string import letters, punctuation, digits import datetime @@ -138,6 +138,7 @@ class QuestionForm(forms.Form): options = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1}),required=False) type = forms.CharField(max_length=8, widget=forms.Select(choices=QUESTION_TYPE_CHOICES)) active = forms.BooleanField(required=False) + tags = TagField() def save(self): summary = self.cleaned_data["summary"] |