mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-28 08:06:27 +00:00
[Fixture] 添加command log backends, 未来支持es
This commit is contained in:
@@ -167,6 +167,16 @@ class SystemUser(models.Model):
|
||||
def asset_group_amount(self):
|
||||
return self.asset_groups.count()
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
'id': self.id,
|
||||
'name': self.name,
|
||||
'username': self.username,
|
||||
'protocol': self.protocol,
|
||||
'auth_method': self.auth_method,
|
||||
'auto_push': self.auto_push,
|
||||
}
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
||||
|
Reference in New Issue
Block a user