mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: return issue votes in public issue list endpoint (#2026)
This commit is contained in:
parent
5e00ffee05
commit
320608ea73
@ -681,6 +681,7 @@ class IssuePublicSerializer(BaseSerializer):
|
|||||||
project_detail = ProjectLiteSerializer(read_only=True, source="project")
|
project_detail = ProjectLiteSerializer(read_only=True, source="project")
|
||||||
state_detail = StateLiteSerializer(read_only=True, source="state")
|
state_detail = StateLiteSerializer(read_only=True, source="state")
|
||||||
issue_reactions = IssueReactionLiteSerializer(read_only=True, many=True)
|
issue_reactions = IssueReactionLiteSerializer(read_only=True, many=True)
|
||||||
|
votes = IssueVoteSerializer(read_only=True, many=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Issue
|
model = Issue
|
||||||
@ -697,6 +698,7 @@ class IssuePublicSerializer(BaseSerializer):
|
|||||||
"priority",
|
"priority",
|
||||||
"target_date",
|
"target_date",
|
||||||
"issue_reactions",
|
"issue_reactions",
|
||||||
|
"votes",
|
||||||
]
|
]
|
||||||
read_only_fields = fields
|
read_only_fields = fields
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user