From 613322a3cbb0041815fb9118b372cd9404c2e1a4 Mon Sep 17 00:00:00 2001 From: Ian Murray Date: Tue, 31 Jul 2012 18:13:59 +0100 Subject: [PATCH] [#2777] Use user_list_dictize --- ckan/logic/action/get.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index cc7d14e037d..f74843e835b 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -2049,7 +2049,7 @@ def _follower_list(context, data_dict, FollowerClass): users = [user for user in users if user is not None] # Dictize the list of User objects. - return [model_dictize.user_dictize(user,context) for user in users] + return model_dictize.user_list_dictize(users, context) def user_follower_list(context, data_dict): '''Return the list of users that are following the given user. @@ -2192,7 +2192,7 @@ def user_followee_list(context, data_dict): users = [user for user in users if user is not None] # Dictize the list of User objects. - return [model_dictize.user_dictize(user, context) for user in users] + return model_dictize.user_list_dictize(users, context) def dataset_followee_list(context, data_dict): '''Return the list of datasets that are followed by the given user.