chore: return issue votes in public issue list endpoint (#2026)

This commit is contained in:
Nikhil 2023-08-31 11:32:58 +05:30 committed by GitHub
parent 5e00ffee05
commit 320608ea73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,6 +681,7 @@ class IssuePublicSerializer(BaseSerializer):
project_detail = ProjectLiteSerializer(read_only=True, source="project")
state_detail = StateLiteSerializer(read_only=True, source="state")
issue_reactions = IssueReactionLiteSerializer(read_only=True, many=True)
votes = IssueVoteSerializer(read_only=True, many=True)
class Meta:
model = Issue
@ -697,6 +698,7 @@ class IssuePublicSerializer(BaseSerializer):
"priority",
"target_date",
"issue_reactions",
"votes",
]
read_only_fields = fields