remove some lines in views.py