Skip to content

Commit

Permalink
Merge pull request #129 from adrienvsj/drf_ujson
Browse files Browse the repository at this point in the history
allow drf_ujson.renderers.UJSONRenderer
  • Loading branch information
vbabiy authored Feb 18, 2024
2 parents 2288ee9 + 762dd6d commit f8bc2a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ By default the package uses `rest_framework.renderers.JSONRenderer`. If you want
to use another renderer, the two possible are:

`drf_orjson_renderer.renderers.ORJSONRenderer` or
`drf_ujson.renderers.UJSONRenderer` or
`rest_framework.renderers.UnicodeJSONRenderer` for DRF < 3.0,specify it in your django
settings file.
settings file.

.. code-block:: python
Expand Down
3 changes: 2 additions & 1 deletion djangorestframework_camel_case/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
VALID_SETTINGS = {
"RENDERER_CLASS": (
"rest_framework.renderers.JSONRenderer",
"drf_orjson_renderer.renderers.ORJSONRenderer",
"drf_orjson_renderer.renderers.ORJSONRenderer",
"drf_ujson.renderers.UJSONRenderer",
"rest_framework.renderers.UnicodeJSONRenderer",
),
"PARSER_CLASS": ("rest_framework.parsers.JSONParser",),
Expand Down

0 comments on commit f8bc2a1

Please sign in to comment.