equal
deleted
inserted
replaced
161 class Notification(models.Model): |
161 class Notification(models.Model): |
162 |
162 |
163 role = models.CharField(max_length = 2, choices = NOTIFY_CHOICES, blank = False) |
163 role = models.CharField(max_length = 2, choices = NOTIFY_CHOICES, blank = False) |
164 sent_to = models.ForeignKey(User, related_name = "%(class)s_sent_to", blank = False) |
164 sent_to = models.ForeignKey(User, related_name = "%(class)s_sent_to", blank = False) |
165 sent_from = models.ForeignKey(User, related_name = "%(class)s_sent_from", null = True, blank = True) |
165 sent_from = models.ForeignKey(User, related_name = "%(class)s_sent_from", null = True, blank = True) |
166 task = models.ForeignKey(Task, related_name = "%(class)s_sent_for", null = True, blank = True) |
166 task = models.ForeignKey(Task, related_name = "%(class)s_task", null = True, blank = True) |
167 |
167 |
168 sub = models.CharField(max_length = 100) |
168 sub = models.CharField(max_length = 100) |
169 message = models.TextField() |
169 message = models.TextField() |
170 remarks = models.CharField(max_length = 100) |
170 remarks = models.CharField(max_length = 100) |
171 |
171 |