fixed error on line 114 in views.py