diff --git a/pytest_bdd_example/auth/models.py b/pytest_bdd_example/auth/models.py index 1d362c6..66cb304 100644 --- a/pytest_bdd_example/auth/models.py +++ b/pytest_bdd_example/auth/models.py @@ -15,4 +15,5 @@ class User(db.Model, UserMixin): email = db.Column(db.String(120), unique=True) password = db.Column(db.String(20)) role = db.Column(db.SmallInteger, default=ROLE_USER) - is_active = db.Column(db.Boolean, default=False) + active = db.Column(db.Boolean, default=False) + diff --git a/pytest_bdd_example/auth/views.py b/pytest_bdd_example/auth/views.py index 4c90f15..556e1d8 100644 --- a/pytest_bdd_example/auth/views.py +++ b/pytest_bdd_example/auth/views.py @@ -17,7 +17,4 @@ def login(): login_user(user) return redirect(request.args.get('next') or url_for('index')) - return render_template( - 'auth/login.html', - form=form, - ) + return render_template('auth/login.html', form=form,)