summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authormahesh2017-08-10 12:03:06 +0530
committermahesh2017-08-10 12:03:06 +0530
commit89d2b914445bd39caf90f72fd0ccdeddbcbd7fa8 (patch)
treea1b18877cc9af28f62418b166080fcb4988db43e /yaksh/models.py
parent3044dff8f1b2dcc2541e5b4227f1299cb505f9d2 (diff)
parent08eaf36d6345212a580a2ccddcdfae7bea85191d (diff)
downloadonline_test-89d2b914445bd39caf90f72fd0ccdeddbcbd7fa8.tar.gz
online_test-89d2b914445bd39caf90f72fd0ccdeddbcbd7fa8.tar.bz2
online_test-89d2b914445bd39caf90f72fd0ccdeddbcbd7fa8.zip
Merge branch 'master' of https://github.com/fossee/online_test into yaml_questions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index f6504d7..fde203c 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -308,6 +308,9 @@ class Profile(models.Model):
os.chmod(user_dir, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
return user_dir
+ def __str__(self):
+ return '%s' % (self.user.get_full_name())
+
###############################################################################
class Question(models.Model):