fix: 修改角色列表排序问题

This commit is contained in:
Bai
2023-02-02 16:06:15 +08:00
committed by Jiangjie.Bai
parent be151523f4
commit a045eb9936
4 changed files with 19 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ class Role(JMSBaseModel):
class Meta:
unique_together = [('name', 'scope')]
ordering = ('scope', 'name')
verbose_name = _('Role')
def __str__(self):