If input_types is an empty list it should override the defaults
This commit is contained in:
parent
239db30934
commit
4d989ee51e
1 changed files with 0 additions and 2 deletions
|
|
@ -86,8 +86,6 @@ class TemplateField(BaseModel):
|
||||||
if self.field_type in ["str", "Text"]:
|
if self.field_type in ["str", "Text"]:
|
||||||
if "input_types" not in result:
|
if "input_types" not in result:
|
||||||
result["input_types"] = ["Text"]
|
result["input_types"] = ["Text"]
|
||||||
else:
|
|
||||||
result["input_types"].append("Text")
|
|
||||||
if self.field_type == "Text":
|
if self.field_type == "Text":
|
||||||
result["type"] = "str"
|
result["type"] = "str"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue