Python rest_framework.decorators.renderer_classes() Examples
The following are 2
code examples of rest_framework.decorators.renderer_classes().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
rest_framework.decorators
, or try the search function
.
Example #1
Source File: utils.py From meeting with GNU General Public License v3.0 | 5 votes |
def __init__(self, *args, **kwargs): super(TextApiView, self).__init__(*args, **kwargs) self.renderer_classes = (renderers.PlainTextRenderer, )
Example #2
Source File: utils.py From meeting with GNU General Public License v3.0 | 5 votes |
def __init__(self, *args, **kwargs): super(HtmlApiView, self).__init__(*args, **kwargs) self.renderer_classes = (renderers.PlainHtmlRenderer, )