Flask-Login raises TypeError: 'bool' object is not callable when trying to override is_active property
问题 I want to modify is_active in Flask-Login so that users are not always active. The default always returns True , but I changed it to return the value of the banned column. Based on the docs, is_active should be a property. However, the internal Flask-Login code raises: TypeError: \'bool\' object is not callable When trying to use is_active . How do I correctly use is_active to deactivate some users? class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) banned = db