Skip to content

Commit

Permalink
chore: vote actor details (#2047)
Browse files Browse the repository at this point in the history
* chore: vote actor details

* dev: add field in serializer

* dev: remove _id in workspace and project
  • Loading branch information
pablohashescobar authored Sep 1, 2023
1 parent 82a48d4 commit c035506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apiserver/plane/api/serializers/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,12 @@ class Meta:


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


Expand Down

1 comment on commit c035506

@vercel
Copy link

@vercel vercel bot commented on c035506 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./apps/app

plane-dev-git-develop-plane.vercel.app
plane-dev-plane.vercel.app
plane-dev.vercel.app

Please sign in to comment.