diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index d1b53e7..efd4fd7 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1162,6 +1162,11 @@ class CourseStatus(models.Model): self.current_unit = unit self.save() + def __str__(self): + return "{0} status for {1}".format( + self.course.name, self.user.username + ) + ############################################################################### class ConcurrentUser(models.Model): |