refacto [api]: cleanup and upgrade

This commit is contained in:
Alice 2022-04-03 01:20:54 +02:00
parent 4f3549daeb
commit 2d996b322f
3 changed files with 3 additions and 15 deletions

View file

@ -1,13 +0,0 @@
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

View file

@ -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'

View file

@ -1,3 +1,3 @@
Django>=3.2,<3.3
Django==4.0.3
djangorestframework==3.13.1
django-cors-headers==3.5.0
django-cors-headers==3.11.0