fixed miss-typed method in views.py