From e1f53f463d9da45b82cc1e9b7fe5c6fef016c34f Mon Sep 17 00:00:00 2001 From: helllllllder Date: Wed, 22 Nov 2023 13:09:17 -0300 Subject: [PATCH] feat: add list_users action to project viewset --- chats/apps/api/v1/projects/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chats/apps/api/v1/projects/serializers.py b/chats/apps/api/v1/projects/serializers.py index 2d040b1a..1c845b57 100644 --- a/chats/apps/api/v1/projects/serializers.py +++ b/chats/apps/api/v1/projects/serializers.py @@ -94,7 +94,8 @@ class ListProjectUsersSerializer(serializers.ModelSerializer): first_name = serializers.CharField(source="user.first_name") last_name = serializers.CharField(source="user.last_name") email = serializers.CharField(source="user.email") + photo_url = serializers.CharField(source="user.photo_url") class Meta: model = ProjectPermission - fields = ["first_name", "last_name", "email"] + fields = ["first_name", "last_name", "email", "photo_url"]