fix: base ticket list 添加create_by_name

This commit is contained in:
caoqianming 2025-07-01 09:34:30 +08:00
parent 8a4ddd0307
commit 864fb783dc
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ class TicketListSerializer(CustomModelSerializer):
class Meta: class Meta:
model = Ticket model = Ticket
fields = ['id', 'title', 'sn', 'workflow', 'workflow_', 'state', 'state_', fields = ['id', 'title', 'sn', 'workflow', 'workflow_', 'state', 'state_',
'act_state', 'create_time', 'update_time', 'participant_type', 'create_by', 'ticket_data', 'act_state', 'create_time', 'update_time', 'participant_type',
'create_by', 'create_by_name', 'ticket_data',
'participant_', 'script_run_last_result', 'participant'] 'participant_', 'script_run_last_result', 'participant']
def get_participant_(self, obj): def get_participant_(self, obj):