Skip to content

Commit 71195b0

Browse files
committed
Better evaluation of whether a document type is diffable. Fixes bug ietf-tools#1504. Commit ready for merge.
- Legacy-Id: 8438
1 parent 96f99e7 commit 71195b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def document_history(request, name):
545545
diff_revisions = []
546546

547547
diffable = [ name.startswith(prefix) for prefix in ["rfc", "draft", "charter", "conflict-review", "status-change", ]]
548-
if diffable:
548+
if any(diffable):
549549
diff_documents = [ doc ]
550550
diff_documents.extend(Document.objects.filter(docalias__relateddocument__source=doc, docalias__relateddocument__relationship="replaces"))
551551

0 commit comments

Comments
 (0)