From 3b81453fd1e3f6570586dcedab16a52fdec577e6 Mon Sep 17 00:00:00 2001 From: Fernando Zunino Date: Sat, 2 Jul 2011 12:56:57 -0300 Subject: [PATCH] Fix: Crash when yaml isn't installed. --- djangorestframework/views.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/djangorestframework/views.py b/djangorestframework/views.py index 757d89db4..eea3b97ad 100644 --- a/djangorestframework/views.py +++ b/djangorestframework/views.py @@ -40,13 +40,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): """ 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. """