summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-11-17 15:52:44 +0530
committerGitHub2020-11-17 15:52:44 +0530
commit32c4ed63c4b2a4548b6ca529e44bd98653da5325 (patch)
treecfbba6c893cf82e0166c932fd68a405cc5c163cb /yaksh/models.py
parent6aef69d6e5a3eb3dde2d39e0bb9e1dd5b05a8b3c (diff)
parent55d2800b61df661e7155f8b3cbd30ed047259f43 (diff)
downloadonline_test-32c4ed63c4b2a4548b6ca529e44bd98653da5325.tar.gz
online_test-32c4ed63c4b2a4548b6ca529e44bd98653da5325.tar.bz2
online_test-32c4ed63c4b2a4548b6ca529e44bd98653da5325.zip
Merge pull request #737 from jramnai/jramnai/create_moderator
[FIX] #546 - create_moderator command if User has no Profile
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index e2b9952..50e9363 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1331,7 +1331,7 @@ class Profile(models.Model):
super(Profile, self).save(*args, **kwargs)
def __str__(self):
- return '%s' % (self.user.get_full_name())
+ return '%s' % (self.user.get_full_name() or self.user.username)
###############################################################################