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

Damien Lespiau damien.lespiau at intel.com
Wed Oct 21 09:40:43 AEDT 2015


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 at intel.com>
---
 patchwork/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.4.3



More information about the Patchwork mailing list