fix: 作业日志筛选用户出错

pull/12111/head
wangruidong 2023-11-14 18:37:48 +08:00 committed by Bryan
parent d63c4d6cc4
commit fef4a97931
1 changed files with 5 additions and 2 deletions

View File

@ -25,10 +25,13 @@ class JobLogSerializer(JobExecutionSerializer):
read_only_fields = [
"id", "material", "time_cost", 'date_start',
'date_finished', 'date_created',
'is_finished', 'is_success', 'created_by',
'task_id'
'is_finished', 'is_success',
'task_id', 'creator_name'
]
fields = read_only_fields + []
extra_kwargs = {
"creator_name": {"label": _("Creator")},
}
class FTPLogSerializer(serializers.ModelSerializer):