Skip to content

Commit e8fb0f0

Browse files
committed
The self.affiliation() call can sometimes cause an exception, too, due to the deficiencies of the database. Use something safer as fallback.
- Legacy-Id: 1925
1 parent c21c695 commit e8fb0f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/idtracker/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ def save(self):
280280
def __str__(self):
281281
# For django.VERSION 0.96
282282
if self.first_name == '' and self.last_name == '':
283-
return self.affiliation()
283+
return "(Person #%s)" % self.person_or_org_tag
284284
return "%s %s" % ( self.first_name or "<nofirst>", self.last_name or "<nolast>")
285285
def __unicode__(self):
286286
# For django.VERSION 1.x
287287
if self.first_name == '' and self.last_name == '':
288-
return unicode(self.affiliation())
288+
return u"(Person #%s)" % self.person_or_org_tag
289289
return u"%s %s" % ( self.first_name or u"<nofirst>", self.last_name or u"<nolast>")
290290
def email(self, priority=1, type='INET'):
291291
name = str(self)

0 commit comments

Comments
 (0)