Skip to content

Commit

Permalink
feat: add list_users action to project viewset
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Nov 22, 2023
1 parent 78d7c8f commit e1f53f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chats/apps/api/v1/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit e1f53f4

Please sign in to comment.