From 6e52e39adfbd78e5475ee418d2f18c927c9c2902 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 28 Apr 2021 11:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E8=AF=A5=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=9A=84=E6=A3=80=E6=9F=A5=E5=BC=80=E5=A7=8B=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/quality/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/quality/views.py b/server/apps/quality/views.py index feee128..ebca737 100644 --- a/server/apps/quality/views.py +++ b/server/apps/quality/views.py @@ -193,7 +193,7 @@ class InspectDeptViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet): obj = self.get_object() if obj.state == '待检查': obj.state = '检查中' - obj.start_date = timezone.now() + obj.start_date = timezone.now().date() obj.save() return Response(InspectDeptSerializer(instance=obj).data, status=status.HTTP_200_OK) return Response('状态错误', status=status.HTTP_400_BAD_REQUEST)