Skip to content

Commit a035c93

Browse files
authored
fix: favor RFCs over drafts in related document section (ietf-tools#6643)
1 parent 4fa8bfa commit a035c93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/group/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ def prepare_group_documents(request, group, clist):
469469
# non-WG drafts and call for WG adoption are considered related
470470
if (d.group != group
471471
or (d.stream_id and d.get_state_slug("draft-stream-%s" % d.stream_id) in ("c-adopt", "wg-cand"))):
472-
if d.get_state_slug() != "expired":
473-
d.search_heading = "Related Internet-Draft"
472+
if (d.type_id == "draft" and d.get_state_slug() not in ["expired","rfc"]) or d.type_id == "rfc":
473+
d.search_heading = "Related Internet-Drafts and RFCs"
474474
docs_related.append(d)
475475
else:
476476
if not (d.get_state_slug('draft-iesg') == "dead" or (d.stream_id and d.get_state_slug("draft-stream-%s" % d.stream_id) == "dead")):

0 commit comments

Comments
 (0)