Add renderer_classes kwarg when binding snippet_highlight explicitly. Closes #923

This commit is contained in:
Tom Christie 2013-06-10 09:05:44 +01:00
parent 40e09472d8
commit 777ecb5141

View File

@ -74,7 +74,7 @@ In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views
}) })
snippet_highlight = SnippetViewSet.as_view({ snippet_highlight = SnippetViewSet.as_view({
'get': 'highlight' 'get': 'highlight'
}) }, renderer_classes=[renderers.StaticHTMLRenderer])
user_list = UserViewSet.as_view({ user_list = UserViewSet.as_view({
'get': 'list' 'get': 'list'
}) })