From 6b2d9faeb5827ddfb1d6ab9ec1ff341d24a18b1a Mon Sep 17 00:00:00 2001 From: nishanth Date: Sat, 27 Feb 2010 14:22:26 +0530 Subject: notifications work for approving and rejecting credits. --- taskapp/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'taskapp/models.py') diff --git a/taskapp/models.py b/taskapp/models.py index bc655b9..65db018 100644 --- a/taskapp/models.py +++ b/taskapp/models.py @@ -172,13 +172,13 @@ class Notification(models.Model): 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) -- cgit