From 7fb13a5888b63745e901c3c555c841faf40e108c Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 6 Oct 2018 22:20:13 -0400 Subject: [PATCH] Return a proper list of SearchModel instances (Python 3). Signed-off-by: Roberto Rosario --- HISTORY.rst | 2 ++ mayan/apps/dynamic_search/classes.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index eee7472c43..a4ee134285 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,6 +13,8 @@ * Add stricted error checking to the crop transformation. * Update compressed files class module to work with Python 3. * Update document parsing app tests to work with Python 3. +* Handle office files in explicit binary mode for Python 3. +* Return a proper list of SearchModel instances (Python 3). 3.1.4 (2018-10-4) ================= diff --git a/mayan/apps/dynamic_search/classes.py b/mayan/apps/dynamic_search/classes.py index 47ed18ba77..390268e182 100644 --- a/mayan/apps/dynamic_search/classes.py +++ b/mayan/apps/dynamic_search/classes.py @@ -26,7 +26,7 @@ class SearchModel(object): @classmethod def all(cls): - return cls._registry.values() + return list(cls._registry.values()) @classmethod def as_choices(cls):