mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Merge pull request #37 from fzunino/none-renderer-fix
Fix: Crash when yaml isn't installed.
This commit is contained in:
commit
17303fc85e
|
@ -40,13 +40,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
||||||
"""
|
"""
|
||||||
List of renderers the resource can serialize the response with, ordered by preference.
|
List of renderers the resource can serialize the response with, ordered by preference.
|
||||||
"""
|
"""
|
||||||
renderers = ( renderers.JSONRenderer,
|
renderers = renderers.DEFAULT_RENDERERS
|
||||||
renderers.DocumentingHTMLRenderer,
|
|
||||||
renderers.DocumentingXHTMLRenderer,
|
|
||||||
renderers.DocumentingPlainTextRenderer,
|
|
||||||
renderers.XMLRenderer,
|
|
||||||
renderers.YAMLRenderer )
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
List of parsers the resource can parse the request with.
|
List of parsers the resource can parse the request with.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user