Fixed error in views.py