作业人员证书增加bug

This commit is contained in:
曹前明 2022-06-25 12:05:48 +08:00
parent f63ae9c247
commit 618e49eec1
1 changed files with 2 additions and 2 deletions

View File

@ -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: