2
0
mirror of https://github.com/frappe/frappe.git synced 2024-06-12 23:32:23 +00:00

fix: we want DF.Literal[None], not DF.LiteralNone

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-03-13 15:57:46 +05:30
parent 4fe61d5158
commit 18961172f6
No known key found for this signature in database
GPG Key ID: 9DCC61E211BF645F

View File

@ -183,7 +183,7 @@ class TypeExporter:
elif field.fieldtype == "Select":
if not field.options:
# Could be dynamic
return "None"
return "[None]"
options = [o.strip() for o in field.options.split("\n")]
return json.dumps(options)