mirror of https://github.com/jumpserver/jumpserver
perf: ticket info add org name
parent
804bd289a4
commit
1ee57cfda0
|
@ -423,6 +423,8 @@ class Ticket(StatusMixin, JMSBaseModel):
|
|||
new_value = alias if alias else account
|
||||
new_values.append(str(new_value))
|
||||
value = ', '.join(new_values)
|
||||
elif name == 'org_id':
|
||||
value = Organization.get_instance(value).name
|
||||
elif isinstance(value, list):
|
||||
value = ', '.join(value)
|
||||
return value
|
||||
|
|
|
@ -94,7 +94,7 @@ class BaseTicketMessage(UserMessage):
|
|||
|
||||
@property
|
||||
def basic_items(self):
|
||||
item_names = ['serial_num', 'title', 'type', 'state', 'applicant', 'comment']
|
||||
item_names = ['serial_num', 'title', 'type', 'state', 'org_id', 'applicant', 'comment']
|
||||
return self._get_fields_items(item_names)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue