diff options
author | hardythe1 | 2012-03-22 16:56:22 +0530 |
---|---|---|
committer | hardythe1 | 2012-03-22 16:56:22 +0530 |
commit | b1ba290f249d84989cb3cc38d018482794582a46 (patch) | |
tree | a0503ec456315e035c515b7dfb881e714a1d4599 /testapp/exam/models.py | |
parent | 4884af693bfb0b9bb70ed6b3d8489267a86d90f9 (diff) | |
download | online_test-b1ba290f249d84989cb3cc38d018482794582a46.tar.gz online_test-b1ba290f249d84989cb3cc38d018482794582a46.tar.bz2 online_test-b1ba290f249d84989cb3cc38d018482794582a46.zip |
Autocomplete tagging functionality
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 689e931..da45e7d 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -44,6 +44,8 @@ class Question(models.Model): # Is this question active or not. If it is inactive it will not be used # when creating a QuestionPaper. active = models.BooleanField(default=True) + + #Tags for the Question. tags = TaggableManager() def __unicode__(self): @@ -91,6 +93,10 @@ class Quiz(models.Model): # Description of quiz. description = models.CharField(max_length=256) + + #Tags for the Quiz. + tags = TaggableManager() + class Meta: verbose_name_plural = "Quizzes" |