taskapp/models.py
changeset 80 8917b190c4c4
parent 71 801cf8fca53a
child 83 fd2e1bd7af82
equal deleted inserted replaced
79:fd6b28204fb1 80:8917b190c4c4
   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     assigned_user = models.ForeignKey(User, related_name = "%(class)s_assigned_user", blank = True, null = True)
       
   144     pynts = models.PositiveIntegerField(default=0)
   144 
   145 
   145 class Notification(models.Model):
   146 class Notification(models.Model):
   146 
   147 
   147     to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)
   148     to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)
   148     is_read = models.BooleanField(default = False)
   149     is_read = models.BooleanField(default = False)