Update views.py

https://github.com/jfinkels/flask-restless/pull/288