fixing seriously broken views.py