1. Tom Christie
  2. Django REST Framework

Commits

Fernando Zunino  committed 15177b1

Fix: Crash when yaml isn't installed.

  • Participants
  • Parent commits 994cf90
  • Branches default

Comments (0)

Files changed (1)

File djangorestframework/views.py

View file
  • Ignore whitespace
     """
     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.
     """