Update views.py

fix a bug in month view