From 94e4dc7c7488be24a1baf80a424c3be402d6349b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 2 Mar 2020 12:47:05 +0000 Subject: [PATCH] Python3 is more ticklish about comparing strings to None than Py2. Fixed an issue with this in generate_sort_key() for document searches. - Legacy-Id: 17373 --- ietf/doc/utils_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/doc/utils_search.py b/ietf/doc/utils_search.py index 47383a12d..f2ee4622f 100644 --- a/ietf/doc/utils_search.py +++ b/ietf/doc/utils_search.py @@ -1,4 +1,4 @@ -# Copyright The IETF Trust 2016-2019, All Rights Reserved +# Copyright The IETF Trust 2016-2020, All Rights Reserved # -*- coding: utf-8 -*- @@ -185,7 +185,7 @@ def prepare_document_table(request, docs, query=None, max_results=200): else: res.append(d.type_id); res.append("-"); - res.append(d.get_state_slug()); + res.append(d.get_state_slug() or ''); res.append("-"); if sort_key == "title":