Updated views.py