-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
While switching to wtforms-sqlalchemy from another library I ran into an issue that we have columns with nullable=False and default value, which should be able to post, but the generated form had added a required validator to those fields so validation failed.
Example of columns:
description = Column(Unicode(20), default="", nullable=False)
active = Column(Boolean, default=True, nullable=False)Validation result from submitting form:

The expected result is that those fields should not have been required so that form processing would continue. Do you see any issues with setting columns with a default to Optional?
Edit: It seems that a checkbox should never be required, right?
mfisher87 and rmarow
Metadata
Metadata
Assignees
Labels
No labels