mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: make cycle issue and module issue responses consistent
This commit is contained in:
parent
9539fca585
commit
2397559a0e
@ -21,7 +21,7 @@ class CycleSerializer(BaseSerializer):
|
||||
|
||||
class CycleIssueSerializer(BaseSerializer):
|
||||
|
||||
issue_details = IssueStateSerializer(read_only=True, source="issue")
|
||||
issue_detail = IssueStateSerializer(read_only=True, source="issue")
|
||||
|
||||
class Meta:
|
||||
model = CycleIssue
|
||||
|
@ -5,7 +5,7 @@ from rest_framework import serializers
|
||||
from .base import BaseSerializer
|
||||
from .user import UserLiteSerializer
|
||||
from .project import ProjectSerializer
|
||||
from .issue import IssueFlatSerializer
|
||||
from .issue import IssueStateSerializer
|
||||
|
||||
from plane.db.models import User, Module, ModuleMember, ModuleIssue
|
||||
|
||||
@ -100,7 +100,7 @@ class ModuleFlatSerializer(BaseSerializer):
|
||||
class ModuleIssueSerializer(BaseSerializer):
|
||||
|
||||
module_detail = ModuleFlatSerializer(read_only=True, source="module")
|
||||
issue_detail = IssueFlatSerializer(read_only=True, source="issue")
|
||||
issue_detail = IssueStateSerializer(read_only=True, source="issue")
|
||||
|
||||
class Meta:
|
||||
model = ModuleIssue
|
||||
|
Loading…
Reference in New Issue
Block a user