renderers.py
32.4 KB
-
Don't make the content mandatory in the generic content form (#5372) · e42eb42d
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.
Daniele Varrazzo committed