taskapp/models.py
changeset 71 801cf8fca53a
parent 63 1fc027bf99ee
child 80 8917b190c4c4
equal deleted inserted replaced
70:a14ec2f09beb 71:801cf8fca53a
   138     read = models.BooleanField(default = False)
   138     read = models.BooleanField(default = False)
   139     creation_date = models.DateTimeField()
   139     creation_date = models.DateTimeField()
   140     reply_date = models.DateTimeField()
   140     reply_date = models.DateTimeField()
   141     replied = models.BooleanField(default = False)
   141     replied = models.BooleanField(default = False)
   142     task = models.ForeignKey(Task,related_name = "%(class)s_task", blank = True, null = True)
   142     task = models.ForeignKey(Task,related_name = "%(class)s_task", blank = True, null = True)
       
   143     assigned_user = models.ForeignKey(User, related_name = "%(class)s_assigned_user", blank = True, null = True)
   143 
   144 
   144 class Notification(models.Model):
   145 class Notification(models.Model):
   145 
   146 
   146     to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)
   147     to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)
   147     is_read = models.BooleanField(default = False)
   148     is_read = models.BooleanField(default = False)