From fdb18755a77d1df6c00fa41fb40ac79062b7473b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 27 Jun 2012 10:22:01 +0000 Subject: [PATCH] Tweak the display of explicitly added documents some more. - Legacy-Id: 4530 --- ietf/doc/models.py | 5 +++++ ietf/templates/community/manage_clist.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 6fb9e9036..29c4df67d 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -197,7 +197,12 @@ class Document(DocumentInfo): name = a[0].name elif self.type_id == "charter": return "charter-ietf-%s" % self.chartered_group.acronym + return name + def display_name(self): + name = self.canonical_name() + if name.startswith('rfc'): + name = name.upper() return name class RelatedDocHistory(models.Model): diff --git a/ietf/templates/community/manage_clist.html b/ietf/templates/community/manage_clist.html index f942b12af..dfaf53070 100644 --- a/ietf/templates/community/manage_clist.html +++ b/ietf/templates/community/manage_clist.html @@ -40,7 +40,7 @@ In order to add some individual documents to your list you have to: NameStateTitleRemove from list {% for doc in cl.added_ids.all %} - {{ doc }} + {{ doc.display_name }} {{ doc.get_state }} {{ doc.title }} Remove