mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 10:20:57 +00:00
perf: 优化 acl 默认排序
This commit is contained in:
@@ -38,7 +38,7 @@ class Migration(migrations.Migration):
|
||||
to=settings.AUTH_USER_MODEL, verbose_name='User')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('priority', 'name'),
|
||||
'ordering': ('priority', '-is_active', 'name'),
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@@ -68,7 +68,7 @@ class Migration(migrations.Migration):
|
||||
verbose_name='Reviewers')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('priority', 'name'),
|
||||
'ordering': ('priority', '-is_active', 'name'),
|
||||
'unique_together': {('name', 'org_id')},
|
||||
},
|
||||
),
|
||||
|
Reference in New Issue
Block a user