Added missing lines to views.py