Merged in [8438] from rjsparks@nostrum.com:\n Better evaluation of whether a document type is diffable. Fixes bug #1504.

- Legacy-Id: 8484
Note: SVN reference [8438] has been migrated to Git commit 71195b0a72
This commit is contained in:
Henrik Levkowetz 2014-10-26 20:00:29 +00:00
commit a18410cca5

View file

@ -548,7 +548,7 @@ def document_history(request, name):
diff_revisions = []
diffable = [ name.startswith(prefix) for prefix in ["rfc", "draft", "charter", "conflict-review", "status-change", ]]
if diffable:
if any(diffable):
diff_documents = [ doc ]
diff_documents.extend(Document.objects.filter(docalias__relateddocument__source=doc, docalias__relateddocument__relationship="replaces"))