feat: 页面配置serializer版 (#6750)

* feat: 页面配置serializer版

* perf: 优化配置

* perf: 优化设置

* perf: 优化设置

* perf: 优化配置页面

* perf: 基本完成设置优化

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2021-09-09 14:00:50 +08:00
committed by GitHub
parent 7a2e93c087
commit 07179a4d22
38 changed files with 1620 additions and 890 deletions

View File

@@ -92,8 +92,8 @@ def import_ldap_user():
def import_ldap_user_periodic():
if not settings.AUTH_LDAP:
return
task_name = 'import_ldap_user_periodic'
if not settings.AUTH_LDAP_SYNC_IS_PERIODIC:
task_name = sys._getframe().f_code.co_name
disable_celery_periodic_task(task_name)
return
@@ -104,7 +104,7 @@ def import_ldap_user_periodic():
interval = None
crontab = settings.AUTH_LDAP_SYNC_CRONTAB
tasks = {
'import_ldap_user_periodic': {
task_name: {
'task': import_ldap_user.name,
'interval': interval,
'crontab': crontab,