taskapp/models.py
changeset 58 e0ec1901dfce
parent 52 0b73f0d8e06e
child 59 f6a3bf088a9e
--- a/taskapp/models.py	Tue Feb 23 14:31:54 2010 +0530
+++ b/taskapp/models.py	Tue Feb 23 15:27:00 2010 +0530
@@ -110,14 +110,15 @@
 
 class Request(models.Model):
 
-    to = models.ForeignKey(User, related_name = "%(class)s_to", blank = False)
+    to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)
     by = models.ForeignKey(User, related_name = "%(class)s_by", blank = False)
     role = models.CharField(max_length = 2, blank = False)
     is_active = models.BooleanField(default = True)
     reply = models.BooleanField(default = False)
-    read = models.BooleanField()
+    read = models.BooleanField(default = False)
     creation_date = models.DateTimeField()
     reply_date = models.DateTimeField()
+    replied = models.BooleanField(default = False)
 
 class Notification(models.Model):