perf: 修改 protocols 默认值

pull/10944/head
ibuler 2023-07-11 17:59:18 +08:00
parent ddbd142ea3
commit 6096ccc30a
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class Protocol(ChoicesMixin, models.TextChoices):
},
'script': {
'type': 'text',
'default': '',
'default': [],
'label': _('Script'),
}
}

View File

@ -34,6 +34,7 @@ class WebMethod(TextChoices):
Protocol.clickhouse: [cls.web_cli],
Protocol.k8s: [cls.web_cli],
Protocol.chatgpt: [cls.web_gui],
Protocol.http: []
}
if not settings.XPACK_ENABLED: