From 8164afb33e6cb6725e0677c9cda13af43de3d5ba Mon Sep 17 00:00:00 2001 From: fengyuanxing Date: Thu, 25 Jan 2018 10:34:59 +0800 Subject: [PATCH] Modify the incorrect return code Change-Id: I5d00cb478f040219299284e77330a38e79a7402b Issue-ID: VFC-677 Signed-off-by: fengyuanxing --- catalog/jobs/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalog/jobs/views.py b/catalog/jobs/views.py index 20278e4a..458ddc5b 100644 --- a/catalog/jobs/views.py +++ b/catalog/jobs/views.py @@ -18,7 +18,6 @@ from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework.response import Response from rest_framework.views import APIView - from catalog.jobs.job_get import GetJobInfoService from catalog.pub.utils.jobutil import JobUtil from catalog.pub.utils.values import ignore_case_get @@ -46,7 +45,7 @@ class JobView(APIView): operation_description="Update job status", manual_parameters=[input_job_id, input_response_id], responses={ - 200: PostJobResponseSerializer(), + 202: PostJobResponseSerializer(), 500: PostJobResponseSerializer() } ) -- 2.16.6