Skip to content
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

Update WTForms #468

Merged
merged 2 commits into from
Oct 4, 2022
Merged

Update WTForms #468

merged 2 commits into from
Oct 4, 2022

Conversation

amCap1712
Copy link
Member

This is needed for #417.

Unselected radio field results in the value of the field being 'None' not None. This is fixed in newer versions. In newer versions, a few imports have changed and email_validators needs to be added a dependency separately to use EmailField.

Newer version of WTForms do not cache form.errors so each call to errors returns a new dict. Form level validation should instead be performed by appending errors to form.form_errors as shown in this commit. pallets-eco/wtforms@22636b5

This is needed for #417.

Unselected radio field results in the value of the field being 'None'
not None. This is fixed in newer versions. In newer versions, a few
imports have changed and email_validators needs to be added a dependency
separately to use EmailField.
Newer version of WTForms do not cache form.errors so each call to errors
returns a new dict. Form level validation should instead be performed by
appending errors to form.form_errors as shown in this commit.

pallets-eco/wtforms@22636b5
Copy link
Collaborator

@alastair alastair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@amCap1712 amCap1712 merged commit bb543a4 into master Oct 4, 2022
@amCap1712 amCap1712 deleted the update-wtf branch October 4, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants