Commit 69c4516a authored by Damien Lespiau's avatar Damien Lespiau
Browse files

models: Don't return the email along with the name in Person's __unicode__



If we have a person name, that's enough to identify her/him. We don't
need to add ones email address there.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent 45e31098
......@@ -41,7 +41,7 @@ class Person(models.Model):
def __unicode__(self):
if self.name:
return u'%s <%s>' % (self.name, self.email)
return self.name
else:
return self.email
......
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