mirror of https://github.com/jumpserver/jumpserver
Merge pull request #9575 from jumpserver/pr@dev@perf_session_account_id
perf: 会话新增 account_idpull/9577/head^2
commit
9cd0a348fc
|
@ -53,7 +53,7 @@ class _ConnectionTokenAccountSerializer(serializers.ModelSerializer):
|
|||
class Meta:
|
||||
model = Account
|
||||
fields = [
|
||||
'name', 'username', 'secret_type', 'secret', 'su_from', 'privileged'
|
||||
'id', 'name', 'username', 'secret_type', 'secret', 'su_from', 'privileged'
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class SessionSerializer(BulkOrgResourceModelSerializer):
|
|||
model = Session
|
||||
fields_mini = ["id"]
|
||||
fields_small = fields_mini + [
|
||||
"user", "asset", "user_id", "asset_id", 'account',
|
||||
"user", "asset", "user_id", "asset_id", 'account', 'account_id',
|
||||
"protocol", 'type', "login_from", "remote_addr",
|
||||
"is_success", "is_finished", "has_replay", "has_command",
|
||||
"date_start", "date_end", "comment"
|
||||
|
|
Loading…
Reference in New Issue