Fix: Crash when yaml isn't installed.

This commit is contained in:
Fernando Zunino 2011-07-02 12:56:57 -03:00
parent 83b47c4b76
commit 3b81453fd1

View File

@ -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.
"""