Update views.py

changed {} to none