chore: vote actor details (#2047)

* chore: vote actor details

* dev: add field in serializer

* dev: remove _id in workspace and project
This commit is contained in:
Nikhil 2023-09-01 15:58:25 +05:30 committed by GitHub
parent 82a48d4805
commit c03550656a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,9 +549,12 @@ class CommentReactionSerializer(BaseSerializer):
class IssueVoteSerializer(BaseSerializer):
actor_detail = UserLiteSerializer(read_only=True, source="actor")
class Meta:
model = IssueVote
fields = ["issue", "vote", "workspace_id", "project_id", "actor"]
fields = ["issue", "vote", "workspace", "project", "actor", "actor_detail"]
read_only_fields = fields