summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-06-01 10:38:44 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-06-03 16:40:21 -0400
commitb5d9dbdf2bba8df4c85cd0db308b3a467d763d02 (patch)
tree67b3e958411ffed8e0cfcb2ef8c961a5b67dc296 /django
parent3328078a01f5268f9b8659f56fd28c5a2ed083dc (diff)
Refs #36905 -- Moved JSONResponse safe param discussion to versionchanged box.
Follow-up to 6e15ac8066312328de279e3e072667416c205bfc.
Diffstat (limited to 'django')
-rw-r--r--django/http/response.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/http/response.py b/django/http/response.py
index dbefb17359..fe267f700f 100644
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -747,9 +747,7 @@ class JsonResponse(HttpResponse):
"""
An HTTP response class that consumes data to be serialized to JSON.
- :param data: Data to be dumped into json. By default only ``dict`` objects
- are allowed to be passed due to a security flaw before ECMAScript 5. See
- the ``safe`` parameter for more information.
+ :param data: Data to be dumped into json.
:param encoder: Should be a json encoder class. Defaults to
``django.core.serializers.json.DjangoJSONEncoder``.
:param safe: Controls if only ``dict`` objects may be serialized. Defaults