mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
try
This commit is contained in:
parent
b1c4d8b59b
commit
4113fe20b5
|
@ -11,3 +11,5 @@
|
||||||
-r requirements/requirements-documentation.txt
|
-r requirements/requirements-documentation.txt
|
||||||
-r requirements/requirements-codestyle.txt
|
-r requirements/requirements-codestyle.txt
|
||||||
-r requirements/requirements-packaging.txt
|
-r requirements/requirements-packaging.txt
|
||||||
|
|
||||||
|
ujson==2.0.3
|
||||||
|
|
|
@ -102,7 +102,7 @@ class JSONRenderer(BaseRenderer):
|
||||||
separators = INDENT_SEPARATORS
|
separators = INDENT_SEPARATORS
|
||||||
|
|
||||||
ret = json.dumps(
|
ret = json.dumps(
|
||||||
data, cls=self.encoder_class,
|
data,
|
||||||
indent=indent, ensure_ascii=self.ensure_ascii,
|
indent=indent, ensure_ascii=self.ensure_ascii,
|
||||||
allow_nan=not self.strict, separators=separators
|
allow_nan=not self.strict, separators=separators
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ handled by users at the renderer and parser layer.
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import json # noqa
|
import ujson as json # noqa
|
||||||
|
|
||||||
|
|
||||||
def strict_constant(o):
|
def strict_constant(o):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user