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
This commit is contained in:
parent
2ab52d9567
commit
fb71294b99
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue