fix: 修复角色列表用户数量字段为0的问题

This commit is contained in:
Bai
2023-02-14 18:13:25 +08:00
committed by Jiangjie.Bai
parent 44d3f88225
commit ac4a321225
2 changed files with 5 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ class Role(JMSBaseModel):
@lazyproperty
def users_amount(self):
return 0
return self.users.count()
@lazyproperty
def permissions_amount(self):