diff --git a/ietf/submit/utils.py b/ietf/submit/utils.py index 41c872bd0..de493d5fe 100644 --- a/ietf/submit/utils.py +++ b/ietf/submit/utils.py @@ -133,7 +133,7 @@ def validate_submission_rev(name, rev): expected = 0 existing_revs = [int(i.rev) for i in Document.objects.filter(name=name) if i.rev and i.rev.isdigit() ] - unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ] # pyflakes:ignore + unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if i.rev and not i.rev.isdigit() ] # pyflakes:ignore log.assertion('unexpected_revs', []) if existing_revs: expected = max(existing_revs) + 1