I have a is_active = db.Column(db.Boolean(), nullable=False)field in the user model in mine flask appnow that when I log in I get an errorTypeError: 'bool' object is not callable
Traceback
.
.
.
File "/home/environments/flask0101/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/flask/myapp/app/auth/views.py", line 15, in login
login_user(user)
File "/home/environments/flask0101/lib/python2.7/site-packages/flask_login.py", line 675, in login_user
if not force and not user.is_active():
TypeError: 'bool' object is not callable
What is the problem?
source
share