Removed unused code from views.py.