fix to views.py. If json only has one argument, then request.json is that value.