mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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:
parent
82a48d4805
commit
c03550656a
@ -549,9 +549,12 @@ class CommentReactionSerializer(BaseSerializer):
|
|||||||
|
|
||||||
|
|
||||||
class IssueVoteSerializer(BaseSerializer):
|
class IssueVoteSerializer(BaseSerializer):
|
||||||
|
|
||||||
|
actor_detail = UserLiteSerializer(read_only=True, source="actor")
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = IssueVote
|
model = IssueVote
|
||||||
fields = ["issue", "vote", "workspace_id", "project_id", "actor"]
|
fields = ["issue", "vote", "workspace", "project", "actor", "actor_detail"]
|
||||||
read_only_fields = fields
|
read_only_fields = fields
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user