Commit d36fe9c0 authored by fred's avatar fred

display full name

parent 8c0c3ec6
......@@ -32,6 +32,13 @@ class User(AbstractUser):
def __unicode__(self):
s = super(User, self).__unicode__()
parts = []
if self.first_name:
parts.append(self.first_name)
if self.last_name:
parts.append(self.last_name)
if parts:
s = ' '.join(parts)
if self.mobile:
return '%s (%s)' % (s, self.mobile)
if self.phone:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment