chore: add workspace details and project details in page responses (#615)
* chore: add workspace details and project details in page responses * fix: typo in workspace queryset
This commit is contained in:
parent
f79fdbf782
commit
f9ee898d88
5 changed files with 74 additions and 2 deletions
|
|
@ -11,6 +11,8 @@ from plane.db.models import Page, PageBlock, PageFavorite, PageLabel, Label
|
|||
|
||||
class PageBlockSerializer(BaseSerializer):
|
||||
issue_detail = IssueFlatSerializer(source="issue", read_only=True)
|
||||
project_detail = ProjectLiteSerializer(source="project", read_only=True)
|
||||
workspace_detail = WorkspaceLiteSerializer(source="workspace", read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = PageBlock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue