chore: add workspace and project details on label endpoints (#713)

This commit is contained in:
pablohashescobar 2023-04-06 22:56:55 +05:30 committed by GitHub
parent ec818a5523
commit 5b72b1672f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,6 +310,9 @@ class IssuePropertySerializer(BaseSerializer):
class LabelSerializer(BaseSerializer):
workspace_detail = WorkspaceLiteSerializer(source="workspace", read_only=True)
project_detail = ProjectLiteSerializer(source="project", read_only=True)
class Meta:
model = Label
fields = "__all__"