mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-23 08:49:04 +00:00
Update terminal api
This commit is contained in:
@@ -25,11 +25,9 @@ class AccessKey(models.Model):
|
||||
def get_secret(self):
|
||||
return str(self.secret)
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
return str(self.id)
|
||||
|
||||
__str__ = __unicode__
|
||||
|
||||
|
||||
class PrivateToken(Token):
|
||||
"""Inherit from auth token, otherwise migration is boring"""
|
||||
|
Reference in New Issue
Block a user