fix: 修复校验用户密码规则

This commit is contained in:
Bai
2021-08-17 16:01:27 +08:00
committed by 老广
parent 9a541ebf05
commit d46f1080f8
5 changed files with 22 additions and 5 deletions

View File

@@ -209,6 +209,11 @@ class RoleMixin:
from orgs.models import ROLE as ORG_ROLE
return [str(role.label) for role in self.org_roles if role in ORG_ROLE]
@lazyproperty
def org_roles_value_list(self):
from orgs.models import ROLE as ORG_ROLE
return [str(role.value) for role in self.org_roles if role in ORG_ROLE]
@lazyproperty
def org_role_display(self):
return ' | '.join(self.org_roles_label_list)