diff mbox

[3/7] models: Don't return the email along with the name in Person's __unicode__

Message ID 1445380847-22838-4-git-send-email-damien.lespiau@intel.com
State Rejected
Headers show

Commit Message

Damien Lespiau Oct. 20, 2015, 10:40 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 8a0858b..3ede65c 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -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