作业人员证书增加bug
This commit is contained in:
parent
f63ae9c247
commit
618e49eec1
|
@ -64,7 +64,7 @@ class OplWorkerCreateSerializer(CustomModelSerializer):
|
|||
if oplc:
|
||||
pass
|
||||
else:
|
||||
oplc = OplCert
|
||||
oplc = OplCert()
|
||||
oplc.opl_worker = oplw
|
||||
oplc.certificate = x
|
||||
for f in Certificate._meta.fields:
|
||||
|
@ -90,7 +90,7 @@ class OplWorkerUpdateSerializer(CustomModelSerializer):
|
|||
if oplc:
|
||||
pass
|
||||
else:
|
||||
oplc = OplCert
|
||||
oplc = OplCert()
|
||||
oplc.opl_worker = oplw
|
||||
oplc.certificate = x
|
||||
for f in Certificate._meta.fields:
|
||||
|
|
Loading…
Reference in New Issue