equal
deleted
inserted
replaced
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 pynts = models.PositiveIntegerField(default=0) |
145 |
145 |
|
146 def __unicode__(self): |
|
147 |
|
148 return u"Request %s %s"%(self.by.username, self.role) |
|
149 |
146 class Notification(models.Model): |
150 class Notification(models.Model): |
147 |
151 |
148 to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False) |
152 to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False) |
149 is_read = models.BooleanField(default = False) |
153 is_read = models.BooleanField(default = False) |
150 sent_date = models.DateTimeField() |
154 sent_date = models.DateTimeField() |