Skip to content

Commit fb71294

Browse files
committed
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 ietf-tools#815). Displaying them as RFCs doesn't work properly as most of the wrapper currently assumes the RFC state. - Legacy-Id: 4151
1 parent 2ab52d9 commit fb71294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def include_text(request):
8484
return include_text
8585

8686
def document_main_rfc(request, rfc_number, tab):
87-
rfci = get_object_or_404(RfcIndex, rfc_number=rfc_number)
87+
rfci = get_object_or_404(RfcIndex, rfc_number=rfc_number, states__type="draft", states__slug="rfc")
8888
rfci.viewing_as_rfc = True
8989
doc = RfcWrapper(rfci)
9090

0 commit comments

Comments
 (0)