summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2020-02-13 09:51:15 +0530
committeradityacp2020-02-13 09:51:15 +0530
commit20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f (patch)
tree25b0f73c4f4628e9c67058794df5578c044f6e7c /yaksh/models.py
parentd7a461639cd57fe78121375bd6730cacecbd63e5 (diff)
parent32f1d4dc7816bbb93f6dda77591eeb75c3f30c0d (diff)
downloadonline_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.tar.gz
online_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.tar.bz2
online_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.zip
Merge branch 'master' of https://github.com/FOSSEE/online_test into revamp_ui
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py5
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):