mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-26 13:25:10 +00:00
perf: 修改 migrations 依赖
This commit is contained in:
@@ -86,12 +86,6 @@ class ConnectionToken(OrgModelMixin, JMSBaseModel):
|
||||
def expire_at(self):
|
||||
return self.permed_account.date_expired.timestamp()
|
||||
|
||||
@lazyproperty
|
||||
def connect_method_object(self):
|
||||
from terminal.const import TerminalType
|
||||
method = TerminalType.get_connect_method(self.connect_method, protocol=self.protocol)
|
||||
return method
|
||||
|
||||
def is_valid(self):
|
||||
if self.is_expired:
|
||||
error = _('Connection token expired at: {}').format(as_current_tz(self.date_expired))
|
||||
|
||||
Reference in New Issue
Block a user