[PATCH 09/51] person: Don't return the email along with the name in __unicode__
Damien Lespiau
damien.lespiau at intel.com
Sat Sep 12 01:54:42 AEST 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 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
--
2.1.0
More information about the Patchwork
mailing list