From 3b81453fd1e3f6570586dcedab16a52fdec577e6 Mon Sep 17 00:00:00 2001 From: Fernando Zunino Date: Sat, 2 Jul 2011 12:56:57 -0300 Subject: [PATCH 1/2] 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. """ From 1885012d61c7ba78e78648ef2bff89e4337c0407 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Sat, 2 Jul 2011 09:37:18 -0700 Subject: [PATCH 2/2] Edited AUTHORS via GitHub --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index d2f3611ee..b872f6712 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,6 +10,7 @@ Michael Fötsch - File format support. David Larlet - OAuth support. Andrew Straw - Bugfixes. - Bugfixes. + - Bugfixes. THANKS TO: