From ee825d48fff5b35b773a24cdda8eb5ed2003d8bb Mon Sep 17 00:00:00 2001 From: Job Doesburg Date: Mon, 27 Jun 2022 12:15:09 +0200 Subject: [PATCH] Fix group admin --- website/users/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"