chore: update API endpoints for analytics (#574)
* chore: return workspace details on project create and update * chore: update endpoints to return workspace and project details --------- Co-authored-by: Vamsi Kurama <vamsi.kurama@gmail.com>
This commit is contained in:
parent
7eaec16381
commit
6d8eda9814
9 changed files with 50 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ from rest_framework import serializers
|
|||
|
||||
# Module imports
|
||||
from .base import BaseSerializer
|
||||
from plane.api.serializers.workspace import WorkSpaceSerializer
|
||||
from plane.api.serializers.workspace import WorkSpaceSerializer, WorkspaceLiteSerializer
|
||||
from plane.api.serializers.user import UserLiteSerializer
|
||||
from plane.db.models import (
|
||||
Project,
|
||||
|
|
@ -18,6 +18,8 @@ from plane.db.models import (
|
|||
|
||||
|
||||
class ProjectSerializer(BaseSerializer):
|
||||
workspace_detail = WorkspaceLiteSerializer(source="workspace", read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = Project
|
||||
fields = "__all__"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue