Commits

Tom Christie  committed ff8cec7 Merge

Merge pull request #37 from fzunino/none-renderer-fix

Fix: Crash when yaml isn't installed.

  • Participants
  • Parent commits 994cf90, 15177b1

Comments (0)

Files changed (1)

File djangorestframework/views.py

     """
     List of renderers the resource can serialize the response with, ordered by preference.
     """
-    renderers = ( renderers.JSONRenderer,
-                  renderers.DocumentingHTMLRenderer,
-                  renderers.DocumentingXHTMLRenderer,
-                  renderers.DocumentingPlainTextRenderer,
-                  renderers.XMLRenderer,
-                  renderers.YAMLRenderer )
-    
+    renderers = renderers.DEFAULT_RENDERERS    
     """
     List of parsers the resource can parse the request with.
     """