diff options
author | nishanth | 2010-02-24 19:17:28 +0530 |
---|---|---|
committer | nishanth | 2010-02-24 19:17:28 +0530 |
commit | 1360092db72b35a19a54930da8ac6e519d9829a9 (patch) | |
tree | 5673b149ca8ddce04bb0e043ec79da4f4351cfb7 /taskapp/models.py | |
parent | 13d342d681386176579092d788e2e3930a6b359c (diff) | |
download | pytask-1360092db72b35a19a54930da8ac6e519d9829a9.tar.gz pytask-1360092db72b35a19a54930da8ac6e519d9829a9.tar.bz2 pytask-1360092db72b35a19a54930da8ac6e519d9829a9.zip |
added accept_assign_credits request
Diffstat (limited to 'taskapp/models.py')
-rw-r--r-- | taskapp/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/taskapp/models.py b/taskapp/models.py index fab49cd..9f9cbbf 100644 --- a/taskapp/models.py +++ b/taskapp/models.py @@ -143,6 +143,10 @@ class Request(models.Model): 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) |