perf: 会话新增 account_id

pull/9575/head
Eric 2023-02-15 19:53:04 +08:00
parent 8be25e1944
commit b882b7de1a
2 changed files with 2 additions and 2 deletions

View File

@ -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'
]

View File

@ -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"