-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmailProperty seems to be required #369
Comments
Is the problem that |
More thorough email regex |
This is not a bug but is you misunderstanding what the By setting the property as optional i.e. Here is an example of a simple class which I will try to save three instances of, one that will fail as it has an invalid email of an empty string and then the 2nd which will show the correct way of using the object without assigning the email and then the third which will show the alternative method where I'll set
|
@StevenMapes can we change the error message to more readable form. |
I remember explicitly handling "" empty strings and setting them to None in response to this. As well as setting required to False. I think this was more about the required = True tripping some flag that could not be flipped back properly. Sorry for being vague - forked a while back. |
@HashRocketSyntax Thank you, this has now been highlighted in the documentation and will be rolled out in an upcoming release. |
Despite
email_distribution = EmailProperty(required=False,...
the validation for Email Property seems to be required.For example, when I try to submit a blank email field I get this back:
'' does not matches '[^@]+@[^@]+\\.[^@]+'
The text was updated successfully, but these errors were encountered: