Django15 changes content type checking

In Django 1.5, `request.POST` is only set on some content types. See [this](https://docs.djangoproject.com/en/1.5/releases/1.5/#non-form-data-in-http-requests) for details.