Update views.py

from versions since django 1.4, the JSON object is in request.body