From bfc558d7c3cf557b9492b15379c1733d961a72a1 Mon Sep 17 00:00:00 2001 From: mahesh Date: Wed, 12 Jul 2017 23:36:35 +0530 Subject: adds search feature for Profile model in admin interface. --- yaksh/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yaksh/models.py') 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): -- cgit