mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 18:00:57 +00:00
perf: 优化 acl 默认排序
This commit is contained in:
@@ -51,7 +51,7 @@ class BaseACL(JMSBaseModel):
|
||||
objects = BaseACLQuerySet.as_manager()
|
||||
|
||||
class Meta:
|
||||
ordering = ('priority', 'name')
|
||||
ordering = ('priority', '-is_active', 'name')
|
||||
abstract = True
|
||||
|
||||
def is_action(self, action):
|
||||
|
Reference in New Issue
Block a user