taskapp/models.py
changeset 83 fd2e1bd7af82
parent 80 8917b190c4c4
child 85 9cf299c47990
--- 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)