Update views.py

I already tested this, it works for me.