opl serializer 增加字段

This commit is contained in:
caoqianming 2022-10-13 14:54:17 +08:00
parent 2b4ae76eff
commit e0d779d623
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class OplCreateUpdateSerializer(CustomModelSerializer):
'accept_time', 'power', 'power_to', 'power_from',
'power_end_time', 'power_start_time', 'power_days',
'other_risk', 'other_emr', 'escape_route',
'risks_checked', 'measures_checked', 'create_imgs']
'risks_checked', 'measures_checked', 'create_imgs', 'cate_name', 'cate_code', 'operation_name']
def create(self, validated_data):
operation = validated_data['operation']