diff -r 8917b190c4c4 -r fd2e1bd7af82 taskapp/models.py --- a/taskapp/models.py Wed Feb 24 17:11:59 2010 +0530 +++ b/taskapp/models.py Wed Feb 24 19:17:28 2010 +0530 @@ -143,6 +143,10 @@ assigned_user = models.ForeignKey(User, related_name = "%(class)s_assigned_user", blank = True, null = True) pynts = models.PositiveIntegerField(default=0) + def __unicode__(self): + + return u"Request %s %s"%(self.by.username, self.role) + class Notification(models.Model): to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False)