Browse Source

perf: ticket 申请添加 comment

pull/5385/head
Bai 4 years ago committed by Jiangjie.Bai
parent
commit
72dd23dcce
  1. 4
      apps/tickets/serializers/ticket/ticket.py

4
apps/tickets/serializers/ticket/ticket.py

@ -30,7 +30,7 @@ class TicketSerializer(OrgResourceModelSerializerMixin):
'id', 'title', 'type', 'type_display',
'meta', 'action', 'action_display', 'status', 'status_display',
'applicant', 'applicant_display', 'processor', 'processor_display',
'assignees', 'assignees_display',
'assignees', 'assignees_display', 'comment',
'date_created', 'date_updated',
'org_id', 'org_name',
'body'
@ -75,7 +75,7 @@ class TicketApplySerializer(TicketActionSerializer):
class Meta(TicketActionSerializer.Meta):
required_fields = TicketActionSerializer.Meta.required_fields + [
'id', 'title', 'type', 'applicant', 'meta', 'assignees', 'org_id'
'id', 'title', 'type', 'applicant', 'meta', 'assignees', 'comment', 'org_id'
]
read_only_fields = list(set(TicketDisplaySerializer.Meta.fields) - set(required_fields))
extra_kwargs = {

Loading…
Cancel
Save