fix: add member role and member status in project create response (#1962)

This commit is contained in:
Nikhil 2023-08-25 15:16:15 +05:30 committed by GitHub
parent 0525e7d6b3
commit fd8c368c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,10 @@ class ProjectViewSet(BaseViewSet):
)
data = serializer.data
# Additional fields of the member
data["sort_order"] = project_member.sort_order
data["member_role"] = project_member.role
data["is_member"] = True
return Response(data, status=status.HTTP_201_CREATED)
return Response(
serializer.errors,