Update views.py

is_authenticated is a function, not a boolean