Dev export (#3355)

* [Update] 修复导出资产csv文件为空的问题

* [Update] 修改获取系统用户 API 只返回节点数量
This commit is contained in:
BaiJiangJie
2019-10-18 15:12:17 +08:00
committed by 老广
parent f3dc9b886b
commit e5250294b0
5 changed files with 10 additions and 5 deletions

View File

@@ -120,6 +120,10 @@ class SystemUser(AssetUser):
def __str__(self):
return '{0.name}({0.username})'.format(self)
@property
def nodes_amount(self):
return self.nodes.all().count()
@property
def login_mode_display(self):
return self.get_login_mode_display()