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
This commit is contained in:
Henrik Levkowetz 2020-03-02 12:47:05 +00:00
parent b6d8bade44
commit 94e4dc7c74

View file

@ -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":