Removed extra code in views.py