Skip to content

Commit

Permalink
[#2777] Use user_list_dictize
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Murray committed Jul 31, 2012
1 parent 9acc9ea commit 613322a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/get.py
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 613322a

Please sign in to comment.