update
This commit is contained in:
parent
96ef2cf88c
commit
eb2ebd13f9
|
|
@ -76,7 +76,8 @@ class JobAdmin(ModelView, model=Job):
|
|||
list_template = "job_list.html"
|
||||
|
||||
# 编辑页排除 secret_cfg,避免回显密文;由自定义模板额外渲染一个空输入框
|
||||
form_edit_rules = [Job.id, Job.enabled, Job.cron_expr, Job.handler_path, Job.public_cfg]
|
||||
# 注意:SQLAdmin 这里需要字段名字符串(不是 SQLAlchemy Column 对象)
|
||||
form_edit_rules = ["id", "enabled", "cron_expr", "handler_path", "public_cfg"]
|
||||
|
||||
column_labels = {
|
||||
"id": "任务ID",
|
||||
|
|
|
|||
Loading…
Reference in New Issue