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/models.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/models.py')
-rw-r--r-- | testapp/exam/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 717e02e..4931e44 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -1,7 +1,7 @@ import datetime from django.db import models from django.contrib.auth.models import User - +from taggit.managers import TaggableManager ################################################################################ class Profile(models.Model): """Profile for a user to store roll number and other details.""" @@ -43,6 +43,7 @@ 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 = TaggableManager() def __unicode__(self): return self.summary |