refactor: 重构权限管理

1.更新字段管理
This commit is contained in:
猿小天
2023-11-20 17:19:20 +08:00
parent 94ad6b1bae
commit 4ac8ed7627
6 changed files with 25 additions and 40 deletions

View File

@@ -141,6 +141,7 @@ def get_custom_app_models(app_name=None):
return get_model_from_app(app_name)
res = []
for app in settings.CUSTOM_APPS:
# print(222,get_model_from_app(app))
res.append(get_model_from_app(app))
all_models = get_model_from_app(app)
for model in all_models:
res.append(model)
return res