diff options
author | hardythe1 | 2012-03-21 17:18:29 +0530 |
---|---|---|
committer | hardythe1 | 2012-03-21 17:18:29 +0530 |
commit | d6b315e816525ee114a22e1c66a35b5e30e86258 (patch) | |
tree | af6a22d442f49d506989b89647c98824af108cab /testapp/exam/forms.py | |
parent | 8bedc83e30c80636df18b301a84c69cb6a543e53 (diff) | |
parent | 2f21a4a007ae9b51fadd7832fe90506f19e309e2 (diff) | |
download | online_test-d6b315e816525ee114a22e1c66a35b5e30e86258.tar.gz online_test-d6b315e816525ee114a22e1c66a35b5e30e86258.tar.bz2 online_test-d6b315e816525ee114a22e1c66a35b5e30e86258.zip |
Merge branch 'admin_module' of github.com:hardythe1/online_test into admin_module
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"] |