Answers for "TypeError: 'bool' object is not callable"

0

TypeError: 'bool' object is not callable

TypeError: 'bool' object is not callable 

"object is not callable" error occurs when you are trying to behave an object like it is a method or function.

current_user.is_authenticated()

you are behaveing current_user.is_authenticated as a method but its not a method .

you have to use it in this way :

current_user.is_authenticated
Posted by: Guest on June-14-2021

Code answers related to "TypeError: 'bool' object is not callable"

Browse Popular Code Answers by Language