Update views.py

Resolving an issue with the log property being called as a method