perf: Translate ticket status

This commit is contained in:
wangruidong
2026-01-22 14:30:06 +08:00
committed by ZhaoJiSen
parent 092086fae7
commit 6ef7401c95
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class TicketFilter(BaseFilterSet):
class Meta:
model = Ticket
fields = (
'id', 'title', 'type', 'status', 'state',
'id', 'title', 'type', 'state',
'applicant', 'assignees__id', 'org_name', 'org_id'
)

View File

@@ -18,7 +18,7 @@ __all__ = [
class TicketSerializer(OrgResourceModelSerializerMixin):
type = LabeledChoiceField(choices=TicketType.choices, read_only=True, label=_('Type'))
status = LabeledChoiceField(choices=TicketStatus.choices, read_only=True, label=_('Status'))
state = LabeledChoiceField(choices=TicketState.choices, read_only=True, label=_("Action"))
state = LabeledChoiceField(choices=TicketState.choices, read_only=True, label=_("Status"))
process_map = serializers.JSONField(read_only=True, default=list, label=_('Process map'))
class Meta: