perf: change Command

This commit is contained in:
ibuler
2025-03-18 13:40:40 +08:00
committed by 老广
parent 7bd03c7863
commit f72fc19ba6
7 changed files with 31 additions and 4 deletions

View File

@@ -25,8 +25,9 @@ class TicketSerializer(OrgResourceModelSerializerMixin):
fields_mini = ['id', 'title']
fields_small = fields_mini + ['org_id', 'comment']
read_only_fields = [
'serial_num', 'process_map', 'approval_step', 'type', 'state', 'applicant',
'status', 'date_created', 'date_updated', 'org_name', 'rel_snapshot'
'serial_num', 'process_map', 'approval_step', 'type',
'state', 'applicant', 'status', 'date_created',
'date_updated', 'org_name', 'rel_snapshot'
]
fields = fields_small + read_only_fields
extra_kwargs = {}