eanbled taskapp and registered task model into tagging
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 21:11:41 +0530
changeset 326 8165274cafa1
parent 325 8f8bd185aacf
child 327 539e7a0b5d86
eanbled taskapp and registered task model into tagging
pytask/settings.py
pytask/taskapp/models.py
--- a/pytask/settings.py	Sat Jan 08 21:09:07 2011 +0530
+++ b/pytask/settings.py	Sat Jan 08 21:11:41 2011 +0530
@@ -91,8 +91,9 @@
     'django.contrib.sites',
     'django.contrib.messages',
     'registration',
-    #'tagging',
+    'tagging',
     'pytask.profile',
+    'pytask.taskapp',
     # Uncomment the next line to enable the admin:
     'django.contrib.admin',
     # Uncomment the next line to enable admin documentation:
--- a/pytask/taskapp/models.py	Sat Jan 08 21:09:07 2011 +0530
+++ b/pytask/taskapp/models.py	Sat Jan 08 21:11:41 2011 +0530
@@ -1,5 +1,8 @@
 from django.db import models
 
+import tagging
+from tagging.fields import TagField
+
 STATUS_CHOICES = (
         ("UP", "Unpublished"),
         ("OP", "Open"),
@@ -93,3 +96,5 @@
                                    related_name = "%(class)s_deleted_by")
     comment_datetime = models.DateTimeField()
     is_deleted = models.BooleanField(default=False)
+
+tagging.register(Task)