import user workscope
This commit is contained in:
parent
60208fe934
commit
d4004c7544
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue