Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Automatically get JSONRenderer from django rest framework settings #87
Instead of hardcoding rest_framework.renderers.JSONRenderer, get the first renderer with format == 'json' from rest_framework.settings.api_settings.DEFAULT_RENDERER_CLASSES. Fallback to JSONRenderer if none of the renderers match.
This mimics the way rest_framework selects a renderer during content negotiation.
This fixes #36.