fifo 删除 bug

This commit is contained in:
caoqianming 2022-01-17 13:32:34 +08:00
parent e2a9d3b048
commit 2bdc68f923
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class FIFOViewSet(ListModelMixin, DestroyModelMixin, GenericViewSet):
def destroy(self, request, *args, **kwargs):
obj = self.get_object()
if obj.is_submited:
if obj.is_audited:
raise exceptions.APIException('该记录已审核,不可删除')
return super().destroy(request, *args, **kwargs)