diff --git a/website/users/admin.py b/website/users/admin.py index 38e22c85..37597bf6 100644 --- a/website/users/admin.py +++ b/website/users/admin.py @@ -167,7 +167,7 @@ def get_count_members(self, obj): def get_members(self, obj): """Get the members of a group.""" - return ",".join(obj.user_set.values_list("name", flat=True)) + return ",".join(str(u) for u in list(obj.user_set.all())) get_members.short_description = "Members"