Skip to content

Commit

Permalink
Update WTForms
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amCap1712 committed Sep 26, 2022
1 parent 9620264 commit 9fb41e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/forms/profile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask_wtf import FlaskForm
from flask_babel import lazy_gettext
from wtforms import StringField, BooleanField, RadioField, validators
from wtforms.fields.html5 import EmailField
from wtforms.fields import EmailField


class ProfileEditForm(FlaskForm):
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pycountry==1.20
python-dateutil==2.6.1
rauth==0.7.3
transifex-client==0.12.4
WTForms==2.2.1
WTForms==3.0.1
email-validator==1.1.3
langdetect==1.0.7
Flask==2.1.2
Jinja2==3.1.2
Expand Down

0 comments on commit 9fb41e1

Please sign in to comment.