Merge "fix mistral dashbaord workflow execution form bug"
This commit is contained in:
commit
ffe113c364
@ -45,15 +45,16 @@ class ExecuteForm(forms.SelfHandlingForm):
|
|||||||
for entry in list.split(","):
|
for entry in list.split(","):
|
||||||
label, _, default = entry.partition("=")
|
label, _, default = entry.partition("=")
|
||||||
label = label.strip()
|
label = label.strip()
|
||||||
self.workflow_parameters.append(label)
|
if label != '':
|
||||||
if default == "None":
|
self.workflow_parameters.append(label)
|
||||||
default = None
|
if default == "None":
|
||||||
required = False
|
default = None
|
||||||
else:
|
required = False
|
||||||
required = True
|
else:
|
||||||
self.fields[label] = forms.CharField(label=label,
|
required = True
|
||||||
required=required,
|
self.fields[label] = forms.CharField(label=label,
|
||||||
initial=default)
|
required=required,
|
||||||
|
initial=default)
|
||||||
|
|
||||||
def handle(self, request, data):
|
def handle(self, request, data):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user