Don't make the content mandatory in the generic content form by dvarrazzo · Pull Request #5372 · encode/django-rest-framework (original) (raw)

Sometimes, probably in the upgrade from Django 1.9 to 1.10, a post with
empty content is forbidden by javascript, with the message "Please fill
in this field". Filling the form with '{}' allows an application/json
request to be submitted.

The API call itself works perfectly well with a post with empty content:
the interface shouldn't make assumptions about it.