refacto [api]: cleanup and upgrade
This commit is contained in:
parent
4f3549daeb
commit
2d996b322f
3 changed files with 3 additions and 15 deletions
|
@ -9,6 +9,7 @@ class PlainTextRenderer(renderers.BaseRenderer):
|
|||
def render(self, data, media_type=None, renderer_context=None):
|
||||
return smart_str(data, encoding=self.charset)
|
||||
|
||||
|
||||
class LatexRenderer(PlainTextRenderer):
|
||||
media_type = 'text/x-tex'
|
||||
format = 'tex'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue