From 10a321eeee49ff6fbffb0f34ebda4f5a49fe7cad Mon Sep 17 00:00:00 2001 From: Johnny Reveco Date: Sat, 22 Feb 2020 18:33:31 -0300 Subject: [PATCH] Due to this error: https://github.com/wtforms/wtforms-sqlalchemy/issues/9 , replaced wtforms_sqlalchemy by wtforms_alchemy --- app/users/forms.py | 4 ++-- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/users/forms.py b/app/users/forms.py index e438379..22664d3 100644 --- a/app/users/forms.py +++ b/app/users/forms.py @@ -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 @@ -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.')) \ No newline at end of file + raise ValidationError(_('E-mail ya registrado, por favor, use un e-mail diferente.')) diff --git a/requirements.txt b/requirements.txt index 945a4f7..fc889a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,7 +40,7 @@ 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 @@ -48,5 +48,5 @@ 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