import user workscope

This commit is contained in:
caoqianming 2020-05-11 15:43:44 +08:00
parent 60208fe934
commit d4004c7544
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class ConsumerViewSet(ModelViewSet):
obj.workscope = workscopeobj
PaySubject.objects.create(subject=workscopeobj.subject, consumer = obj)
except:
pass
return Response({"error":"工作类别不存在!"})
obj.save()
m = m + 1
return Response(status=status.HTTP_200_OK)