mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
Add renderer_classes kwarg when binding snippet_highlight explicitly. Closes #923
This commit is contained in:
parent
40e09472d8
commit
777ecb5141
|
@ -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({
|
||||
'get': 'highlight'
|
||||
})
|
||||
}, renderer_classes=[renderers.StaticHTMLRenderer])
|
||||
user_list = UserViewSet.as_view({
|
||||
'get': 'list'
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user