From d3af59ec06e594a286d5d4ffa18b64d51cd21f72 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 6 Sep 2018 16:46:35 -0400 Subject: [PATCH] Add improvement to the mayan_statistics app for Python 3. Signed-off-by: Roberto Rosario --- mayan/apps/mayan_statistics/classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/mayan_statistics/classes.py b/mayan/apps/mayan_statistics/classes.py index 5f6683b25c..031ffde7a6 100644 --- a/mayan/apps/mayan_statistics/classes.py +++ b/mayan/apps/mayan_statistics/classes.py @@ -16,7 +16,7 @@ class StatisticNamespace(object): @classmethod def get_all(cls): - return cls._registry.values() + return list(cls._registry.values()) @classmethod def get(cls, slug): @@ -73,7 +73,7 @@ class Statistic(object): @classmethod def get_all(cls): - return cls._registry.values() + return list(cls._registry.values()) @classmethod def get(cls, slug):