From b882b7de1ac51bc822eaec8e06ba16fa30f10123 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 15 Feb 2023 19:53:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=9A=E8=AF=9D=E6=96=B0=E5=A2=9E=20?= =?UTF-8?q?account=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/serializers/connect_token_secret.py | 2 +- apps/terminal/serializers/session.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/authentication/serializers/connect_token_secret.py b/apps/authentication/serializers/connect_token_secret.py index 41ee8d116..003d8239e 100644 --- a/apps/authentication/serializers/connect_token_secret.py +++ b/apps/authentication/serializers/connect_token_secret.py @@ -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' ] diff --git a/apps/terminal/serializers/session.py b/apps/terminal/serializers/session.py index 7a5b7e27e..32ff8061e 100644 --- a/apps/terminal/serializers/session.py +++ b/apps/terminal/serializers/session.py @@ -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"