taskapp/models.py
changeset 129 e747da8bc110
parent 128 f34e3a3e1439
child 130 9417ae986d2a
--- a/taskapp/models.py	Sat Feb 27 10:48:43 2010 +0530
+++ b/taskapp/models.py	Sat Feb 27 14:22:26 2010 +0530
@@ -172,13 +172,13 @@
 
     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", blank = True)
-    task = models.ForeignKey(Task, related_name = "%(class)s_sent_for", 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)
 
 
     sub = models.CharField(max_length = 100)
     message = models.TextField()
-    remark = models.CharField(max_length = 100)
+    remarks = models.CharField(max_length = 100)
 
     sent_date = models.DateTimeField()
     is_read = models.BooleanField(default = False)