Email
with null value not working properly
#296
Replies: 3 comments 15 replies
-
Try setting email = Email(
length=100,
null=True,
required=False
) I don't think it's well documented - we need to improve that. |
Beta Was this translation helpful? Give feedback.
-
@dantownsend , I want to draw your attention in this issue again. I don't know exactly how it can be fixed. @sinisaos , can you suggest something....? |
Beta Was this translation helpful? Give feedback.
-
@sumitsharansatsangi Quick fix will be change this line in Piccolo to this: elif isinstance(column, Email):
value_type = t.Union[pydantic.EmailStr, t.Literal[""]] This would allow an empty string to pass validation. But that needs to be checked, but I don't have time right now so I'll have a look tomorrow. |
Beta Was this translation helpful? Give feedback.
-
My table is as follows:
When I want to view the Student Table, I receive following error
Beta Was this translation helpful? Give feedback.
All reactions