mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
perf: 优化 labels 绑定资源 (#12361)
* perf: 优化 labels 绑定资源 * perf: 优化 labels list 显示 * perf: add migrations --------- Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.utils.functional import LazyObject
|
||||
|
||||
|
||||
class LabeledResourceType(LazyObject):
|
||||
@staticmethod
|
||||
def get_res_types():
|
||||
from rbac.models import ContentType
|
||||
content_types = ContentType.objects.all()
|
||||
ids = []
|
||||
for ct in content_types:
|
||||
|
Reference in New Issue
Block a user