From 217dbeb3dc97e31925a8b9e91e956d3cadaddbc9 Mon Sep 17 00:00:00 2001 From: Ole Laursen <olau@iola.dk> Date: Mon, 14 Nov 2011 17:32:39 +0000 Subject: [PATCH] Fix bug __unicode__ on IprDocAlias (spotted by Ryan Cross) - Legacy-Id: 3613 --- ietf/ipr/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/ipr/models.py b/ietf/ipr/models.py index 314ab13f0..08787abe5 100644 --- a/ietf/ipr/models.py +++ b/ietf/ipr/models.py @@ -203,9 +203,9 @@ if settings.USE_DB_REDESIGN_PROXY_CLASSES or hasattr(settings, "IMPORTING_IPR"): rev = models.CharField(max_length=2, blank=True) def __unicode__(self): if self.rev: - return u"%s which applies to %s-%s" % (self.ipr, self.document, self.revision) + return u"%s which applies to %s-%s" % (self.ipr, self.doc_alias.name, self.rev) else: - return u"%s which applies to %s" % (self.ipr, self.document) + return u"%s which applies to %s" % (self.ipr, self.doc_alias.name) # proxy stuff IprDraftOld = IprDraft