taskapp/models.py
changeset 204 fa1da06d25c9
parent 203 4774f6875a2d
child 205 0c317f68df49
--- a/taskapp/models.py	Thu Mar 04 17:56:31 2010 +0530
+++ b/taskapp/models.py	Thu Mar 04 18:30:55 2010 +0530
@@ -163,7 +163,7 @@
     role = models.CharField(max_length = 2, choices = NOTIFY_CHOICES, blank = False)
     sent_to = models.ForeignKey(User, related_name = "%(class)s_sent_to", blank = False)
     sent_from = models.ForeignKey(User, related_name = "%(class)s_sent_from", null = True, blank = True)
-    task = models.ForeignKey(Task, related_name = "%(class)s_sent_for", null = True, blank = True)
+    task = models.ForeignKey(Task, related_name = "%(class)s_task", null = True, blank = True)
 
     sub = models.CharField(max_length = 100)
     message = models.TextField()