rparty_file_cate
This commit is contained in:
parent
9e19a65609
commit
8805b85dad
|
@ -131,7 +131,7 @@ class RpjViewSet(CustomModelViewSet):
|
||||||
vdata['belong_dept'] = vdata['rparty'].belong_dept
|
vdata['belong_dept'] = vdata['rparty'].belong_dept
|
||||||
ins = super().create(request, *args, **kwargs)
|
ins = super().create(request, *args, **kwargs)
|
||||||
# 同步创建需要提交的资料
|
# 同步创建需要提交的资料
|
||||||
for i in Dictionary.objects.filter(type__code='rparty_file').order_by('sort'):
|
for i in Dictionary.objects.filter(type__code='rparty_file_cate').order_by('sort'):
|
||||||
Rpjfile.objects.create(rpj=ins, file_cate=i)
|
Rpjfile.objects.create(rpj=ins, file_cate=i)
|
||||||
return ins
|
return ins
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue