rpj create 返回信息
This commit is contained in:
parent
bdc57a91c9
commit
b57ff355c3
|
@ -185,7 +185,7 @@ class RpjViewSet(CustomModelViewSet):
|
|||
# 同步创建需要提交的资料
|
||||
for i in Dictionary.objects.filter(type__code='rparty_file_cate').order_by('sort'):
|
||||
Rpjfile.objects.create(rpj=ins, file_cate=i)
|
||||
return Response(status=201, data={'id': ins.id})
|
||||
return Response(status=201, data=serializer.data)
|
||||
|
||||
def update(self, request, *args, **kwargs):
|
||||
obj = self.get_object()
|
||||
|
|
Loading…
Reference in New Issue