diff mbox

[09/51] person: Don't return the email along with the name in __unicode__

Message ID 1441986924-26689-10-git-send-email-damien.lespiau@intel.com
State Superseded
Headers show

Commit Message

Damien Lespiau Sept. 11, 2015, 3:54 p.m. UTC
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: Damien Lespiau <damien.lespiau@intel.com>
---
 patchwork/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/patchwork/models.py b/patchwork/models.py
index cbc8b51..62fd628 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -39,7 +39,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