taskapp/models.py
changeset 104 d1bdd5d6c1a6
parent 90 b2426897ff18
child 107 4903b4973fc8
equal deleted inserted replaced
103:3a4c8fccb9f3 104:d1bdd5d6c1a6
   135 
   135 
   136     sent_to = models.ManyToManyField(User, related_name = "%(class)s_sent_to", blank = False)
   136     sent_to = models.ManyToManyField(User, related_name = "%(class)s_sent_to", blank = False)
   137     sent_by = models.ForeignKey(User, related_name = "%(class)s_sent_by", blank = False)
   137     sent_by = models.ForeignKey(User, related_name = "%(class)s_sent_by", blank = False)
   138     role = models.CharField(max_length = 2, blank = False)
   138     role = models.CharField(max_length = 2, blank = False)
   139     reply = models.BooleanField(default = False)
   139     reply = models.BooleanField(default = False)
       
   140     remarks = models.TextField(default = "",blank = True)
   140     is_read = models.BooleanField(default = False)
   141     is_read = models.BooleanField(default = False)
   141     creation_date = models.DateTimeField()
   142     creation_date = models.DateTimeField()
   142     reply_date = models.DateTimeField()
   143     reply_date = models.DateTimeField()
   143     is_replied = models.BooleanField(default = False)
   144     is_replied = models.BooleanField(default = False)
   144     replied_by = models.ForeignKey(User, related_name = "%(class)s_replied_by", blank = True, null = True)
   145     replied_by = models.ForeignKey(User, related_name = "%(class)s_replied_by", blank = True, null = True)