summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tbc/models.py b/tbc/models.py
index 4032125..44571ba 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -3,7 +3,7 @@ from django.contrib.auth.models import User
from PythonTBC import settings
from django.contrib.admin.models import LogEntry
from local import sitemap_path
-
+from taggit.managers import TaggableManager
CATEGORY = (("fluid mechanics", "Fluid Mechanics"),
("control systems", "Control Theory & Control Systems"),
@@ -104,6 +104,7 @@ class Book(models.Model):
contributor = models.ForeignKey(Profile)
reviewer = models.ForeignKey(Reviewer)
approved = models.BooleanField(default=False)
+ tags = TaggableManager()
def __unicode__(self):
name = self.title or 'Book'
return '%s'%(name)