Update views.py

delete some useless codes