summaryrefslogtreecommitdiff
path: root/testapp/exam/forms.py
diff options
context:
space:
mode:
authorhardythe12012-03-21 17:18:29 +0530
committerhardythe12012-03-21 17:18:29 +0530
commitd6b315e816525ee114a22e1c66a35b5e30e86258 (patch)
treeaf6a22d442f49d506989b89647c98824af108cab /testapp/exam/forms.py
parent8bedc83e30c80636df18b301a84c69cb6a543e53 (diff)
parent2f21a4a007ae9b51fadd7832fe90506f19e309e2 (diff)
downloadonline_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.py3
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"]