marcgibbons/django-rest-swagger — pull request #87 by ErwinJunge (2014-05-27 08:46:26+00:00)
Title: Automatically get JSONRenderer from django rest framework settings

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.