equal
deleted
inserted
replaced
153 |
153 |
154 return u"Request %s %s"%(self.sent_by.username, self.role) |
154 return u"Request %s %s"%(self.sent_by.username, self.role) |
155 |
155 |
156 class Notification(models.Model): |
156 class Notification(models.Model): |
157 |
157 |
158 to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False) |
158 sent_to = models.ManyToManyField(User, related_name = "%(class)s_sent_to", blank = False) |
159 is_read = models.BooleanField(default = False) |
159 sent_from = models.ManyToManyField(User, related_name = "%(class)s_sent_from", blank = True) |
160 sent_date = models.DateTimeField() |
160 |
161 sub = models.CharField(max_length = 100) |
161 sub = models.CharField(max_length = 100) |
162 message = models.TextField() |
162 message = models.TextField() |
163 deleted = models.BooleanField(default = False) |
163 |
|
164 sent_date = models.DateTimeField() |
|
165 is_read = models.BooleanField(default = False) |
|
166 is_deleted = models.BooleanField(default = False) |
164 |
167 |
165 tagging.register(Profile) |
168 tagging.register(Profile) |
166 tagging.register(Task) |
169 tagging.register(Task) |