mirror of https://github.com/jumpserver/jumpserver
perf(session): 修改变量名terminate
parent
8a693d9fa7
commit
dcb38ef534
|
@ -268,7 +268,7 @@ class Session(OrgModelMixin):
|
|||
return [_PROTOCOL.MYSQL, _PROTOCOL.MARIADB, _PROTOCOL.ORACLE, _PROTOCOL.POSTGRESQL]
|
||||
|
||||
@property
|
||||
def can_termination(self):
|
||||
def can_terminate(self):
|
||||
_PROTOCOL = self.PROTOCOL
|
||||
if self.is_finished:
|
||||
return False
|
||||
|
|
|
@ -22,7 +22,7 @@ class SessionSerializer(BulkOrgResourceModelSerializer):
|
|||
"user_id", "asset_id", "system_user_id",
|
||||
"login_from", "login_from_display", "remote_addr",
|
||||
"is_success", "is_finished", "has_replay", "can_replay",
|
||||
"can_join", "can_termination", "protocol", "date_start", "date_end",
|
||||
"can_join", "can_terminate", "protocol", "date_start", "date_end",
|
||||
"terminal",
|
||||
]
|
||||
extra_kwargs = {
|
||||
|
|
Loading…
Reference in New Issue