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

pull/9415/head
Bai 2 years ago committed by Jiangjie.Bai
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…
Cancel
Save