summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authormahesh2017-07-12 23:36:35 +0530
committermahesh2017-07-12 23:36:35 +0530
commitbfc558d7c3cf557b9492b15379c1733d961a72a1 (patch)
treeaa514aa37f404d898a9fb17ff1106c3be470b510 /yaksh/models.py
parentebc8a2af6d4fdf52a9703701a97a3abfaf66ed06 (diff)
downloadonline_test-bfc558d7c3cf557b9492b15379c1733d961a72a1.tar.gz
online_test-bfc558d7c3cf557b9492b15379c1733d961a72a1.tar.bz2
online_test-bfc558d7c3cf557b9492b15379c1733d961a72a1.zip
adds search feature for Profile model in admin interface.
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 2fa34e4..87e6260 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -306,6 +306,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):