Update views.py

minor bug hotfix