Tweak PersonOrOrgName.email() to handle non-ascii names a bit better.
- Legacy-Id: 3199
This commit is contained in:
parent
5ae20efdd5
commit
63ec3f95b4
|
@ -271,7 +271,7 @@ class PersonOrOrgInfo(models.Model):
|
|||
return u"(Person #%s)" % self.person_or_org_tag
|
||||
return u"%s %s" % ( self.first_name or u"<nofirst>", self.last_name or u"<nolast>")
|
||||
def email(self, priority=1, type=None):
|
||||
name = str(self)
|
||||
name = unicode(self)
|
||||
email = ''
|
||||
types = type and [ type ] or [ "INET", "Prim", None ]
|
||||
for type in types:
|
||||
|
|
Loading…
Reference in a new issue