Update views.py

Import bug fixed