views.py minor bug fixed