We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78a9a3 commit 63f5af7Copy full SHA for 63f5af7
1 file changed
ietf/doc/utils.py
@@ -597,7 +597,7 @@ def get_ancestors(doc):
597
'published': e.time.isoformat(),
598
'url': url
599
}
600
- if doc.history_set.filter(rev=e.newrevisiondocevent.rev).exists():
+ if hasattr(e, 'newrevisiondocevent') and doc.history_set.filter(rev=e.newrevisiondocevent.rev).exists():
601
history[url]['pages'] = doc.history_set.filter(rev=e.newrevisiondocevent.rev).first().pages
602
history = history.values()
603
return sorted(history, key=lambda x: x['published'])
0 commit comments