Skip to content

Commit

Permalink
Due to this error: wtforms/wtforms-sqlalchemy#9 , replaced wtforms_sq…
Browse files Browse the repository at this point in the history
…lalchemy by wtforms_alchemy
  • Loading branch information
epikt committed Feb 22, 2020
1 parent 4da9691 commit 10a321e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/users/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask_wtf import FlaskForm
from flask_sqlalchemy import SQLAlchemy
from wtforms import StringField, PasswordField, BooleanField, SubmitField, HiddenField
from wtforms_sqlalchemy.fields import QuerySelectField
from wtforms_alchemy.fields import QuerySelectField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo
from flask_babel import _, lazy_gettext as _l
from app.models import User, Profile
Expand Down Expand Up @@ -73,4 +73,4 @@ def validate_email(self, email):
if email.data != self.original_email:
user = User.query.filter_by(email=email.data).first()
if user is not None:
raise ValidationError(_('E-mail ya registrado, por favor, use un e-mail diferente.'))
raise ValidationError(_('E-mail ya registrado, por favor, use un e-mail diferente.'))
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ python-dotenv==0.10.3
python-editor==1.0.4
pytz==2019.2
six==1.12.0
SQLAlchemy==1.3.8
SQLAlchemy==1.2.6
SQLAlchemy-Utils==0.34.2
traitlets==4.3.2
validators==0.14.0
visitor==0.1.3
wcwidth==0.1.7
Werkzeug==0.15.5
WTForms==2.2.1
WTForms-Alchemy==0.16.9
WTForms-Components==0.10.4
WTForms-SQLAlchemy==0.1

0 comments on commit 10a321e

Please sign in to comment.