mirror of https://github.com/jumpserver/jumpserver
fix: 修改角色列表排序问题
parent
a045eb9936
commit
2d514c0db0
|
@ -12,6 +12,6 @@ class Migration(migrations.Migration):
|
|||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='role',
|
||||
options={'ordering': ('scope', 'name'), 'verbose_name': 'Role'},
|
||||
options={'ordering': ('-builtin', 'scope', 'name'), 'verbose_name': 'Role'},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -43,7 +43,7 @@ class Role(JMSBaseModel):
|
|||
|
||||
class Meta:
|
||||
unique_together = [('name', 'scope')]
|
||||
ordering = ('scope', 'name')
|
||||
ordering = ('-builtin', 'scope', 'name')
|
||||
verbose_name = _('Role')
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in New Issue