diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index 4c7d2164516..9bbb0068a27 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -162,7 +162,7 @@ def document_main(request, name, rev=None, document_html=False): snapshot = False gh = None - if rev != None: + if rev: # find the entry in the history for h in doc.history_set.order_by("-time"): if rev == h.rev: