fix(users): 修改用户角色显示名称

This commit is contained in:
xinwen
2020-08-14 17:09:23 +08:00
committed by 老广
parent 0e0c9275bd
commit af85d551ad
5 changed files with 105 additions and 77 deletions

View File

@@ -153,9 +153,9 @@ class AuthMixin:
class RoleMixin:
class ROLE(ChoiceSet):
ADMIN = choices.ADMIN, _('Super administrator')
ADMIN = choices.ADMIN, _('System administrator')
USER = choices.USER, _('User')
AUDITOR = choices.AUDITOR, _('Super auditor')
AUDITOR = choices.AUDITOR, _('System auditor')
APP = 'App', _('Application')
role = ROLE.USER