fix: 修改 command review 返回为 response 对象

pull/9476/head
Bai 2023-02-09 11:06:48 +08:00 committed by Jiangjie.Bai
parent d6d45f64fa
commit df428feaeb
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,5 @@
from rest_framework.decorators import action
from rest_framework.response import Response
from common.utils import reverse
from orgs.mixins.api import OrgBulkModelViewSet
from .. import models, serializers
@ -36,4 +34,4 @@ class CommandFilterACLViewSet(OrgBulkModelViewSet):
}
ticket = serializer.cmd_filter_acl.create_command_review_ticket(**data)
info = ticket.get_extra_info_of_review(user=request.user)
return info
return Response(data=info)