mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Merge 33b38226db
into a06252f812
This commit is contained in:
commit
972d931105
|
@ -63,9 +63,6 @@ class JSONRenderer(BaseRenderer):
|
|||
"""
|
||||
Render `data` into JSON.
|
||||
"""
|
||||
if data is None:
|
||||
return bytes()
|
||||
|
||||
# If 'indent' is provided in the context, then pretty print the result.
|
||||
# E.g. If we're being called by the BrowsableAPIRenderer.
|
||||
renderer_context = renderer_context or {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user