From 2658ff2862f3edba03917460b8cb8c137e18f2bf Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 28 Jan 2011 09:41:04 +0000 Subject: [PATCH] For a new IESG tracker document, only add a history comment about previous history if some previous history exists (i.e., if the replaced document also existed in the IESG tracker). - Legacy-Id: 2769 --- ietf/idrfc/views_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/idrfc/views_edit.py b/ietf/idrfc/views_edit.py index fcf006e6d..60a83b1e6 100644 --- a/ietf/idrfc/views_edit.py +++ b/ietf/idrfc/views_edit.py @@ -219,7 +219,7 @@ def edit_info(request, name): doc.idinternal.area_acronym = r['area_acronym'] replaces = doc.replaces_set.all() - if replaces: + if replaces and replaces[0].idinternal: c = "Earlier history may be found in the Comment Log for %s" % (replaces[0], replaces[0].idinternal.get_absolute_url()) add_document_comment(request, doc, c)