I'm using rest_framework.test.APIClient for unit tests in my project. I used a dictionary as a request data, so None values there are not parsed properly as it doesn't understand the format. I added format="json" as a parameter to client.post() and it worked fine. However adding content_type="application/json" solved the problem as well and I want to know what's the difference.