Skip to content

Commit 6a2ae39

Browse files
committed
Fixed a regression: restore diff pane in history page for RFCs.
- Legacy-Id: 5880
1 parent 3c4bee3 commit 6a2ae39

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,15 @@ def document_main(request, name, rev=None):
455455
raise Http404
456456

457457

458+
@debug.trace
458459
def document_history(request, name):
459460
doc = get_object_or_404(Document, docalias__name=name)
460461
top = render_document_top(request, doc, "history", name)
461462

462463
# pick up revisions from events
463464
diff_revisions = []
464465

465-
diffable = name.startswith("draft") or name.startswith("charter") or name.startswith("conflict-review") or name.startswith("status-change")
466+
diffable = [ name.startswith(prefix) for prefix in ["rfc", "draft", "charter", "conflict-review", "status-change", ]]
466467
if diffable:
467468
diff_documents = [ doc ]
468469
diff_documents.extend(Document.objects.filter(docalias__relateddocument__source=doc, docalias__relateddocument__relationship="replaces"))

0 commit comments

Comments
 (0)