fixed an errorr in views.py