Update views.py

Found a bug where question was referenced before assignment.