Skip to content

Commit 217dbeb

Browse files
committed
Fix bug __unicode__ on IprDocAlias (spotted by Ryan Cross)
- Legacy-Id: 3613
1 parent d82cbac commit 217dbeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/ipr/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ class IprDocAlias(models.Model):
203203
rev = models.CharField(max_length=2, blank=True)
204204
def __unicode__(self):
205205
if self.rev:
206-
return u"%s which applies to %s-%s" % (self.ipr, self.document, self.revision)
206+
return u"%s which applies to %s-%s" % (self.ipr, self.doc_alias.name, self.rev)
207207
else:
208-
return u"%s which applies to %s" % (self.ipr, self.document)
208+
return u"%s which applies to %s" % (self.ipr, self.doc_alias.name)
209209

210210
# proxy stuff
211211
IprDraftOld = IprDraft

0 commit comments

Comments
 (0)