mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-21 03:19:52 +00:00
[Update] audits 模块为一些 models 字段添加 verbose 信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from rest_framework import serializers
|
||||
|
||||
from terminal.models import Session
|
||||
@@ -61,3 +61,7 @@ class CommandExecutionSerializer(serializers.ModelSerializer):
|
||||
'hosts', 'run_as', 'command', 'user', 'is_finished',
|
||||
'date_start', 'result', 'is_success'
|
||||
)
|
||||
extra_kwargs = {
|
||||
'result': {'label': _('Result')},
|
||||
'is_success': {'label': _('Is success')},
|
||||
}
|
||||
|
Reference in New Issue
Block a user