You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something like is_authenticated = bool(user.is_authenticated) should do the trick.
It looks like is_authenticated is a lazily evaluated value, or something odd which is trying to enable both a property getter and a method call on the same property. In effect, the JSON serialiser doesn't know to derive a primitive value from CallableBool instances.
Activity
markfinger commentedon Jul 6, 2017
Something like
is_authenticated = bool(user.is_authenticated)should do the trick.It looks like
is_authenticatedis a lazily evaluated value, or something odd which is trying to enable both a property getter and a method call on the same property. In effect, the JSON serialiser doesn't know to derive a primitive value fromCallableBoolinstances.wx2228 commentedon Jul 6, 2017
thanks!!!