From fb71294b99dec60a8a6fb6b4897c8cedf669cad6 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Wed, 21 Mar 2012 11:08:16 +0000 Subject: [PATCH] Only show RFC documents that are in state RFC, this prevents documents with an RFC DocAlias but not the right state from being displayed as RFCs (as in issue #815). Displaying them as RFCs doesn't work properly as most of the wrapper currently assumes the RFC state. - Legacy-Id: 4151 --- ietf/idrfc/views_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/idrfc/views_doc.py b/ietf/idrfc/views_doc.py index b6cf8df58..e6c4aab47 100644 --- a/ietf/idrfc/views_doc.py +++ b/ietf/idrfc/views_doc.py @@ -84,7 +84,7 @@ def include_text(request): return include_text def document_main_rfc(request, rfc_number, tab): - rfci = get_object_or_404(RfcIndex, rfc_number=rfc_number) + rfci = get_object_or_404(RfcIndex, rfc_number=rfc_number, states__type="draft", states__slug="rfc") rfci.viewing_as_rfc = True doc = RfcWrapper(rfci)