Update views.py

fixed bug