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
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue