summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordevilsautumn <bhuvnesh875@gmail.com>2023-06-06 14:26:53 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-06 14:14:57 +0200
commit094b0bea2ce76db9d3dc06c384d4ac3b22705810 (patch)
tree3a6745cd3020b7e91c2d0ebd905b6327a7b0cea8 /docs
parent4f6a51dfe6a4a8d5ed61c73b902e808109f142b0 (diff)
Fixed #34609 -- Deprecated calling format_html() without arguments.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt3
-rw-r--r--docs/ref/utils.txt5
-rw-r--r--docs/releases/5.0.txt3
3 files changed, 11 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index b27348adb0..fa2a1c0a0c 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -35,6 +35,9 @@ details on these changes.
* The default scheme for ``forms.URLField`` will change from ``"http"`` to
``"https"``.
+* Support for calling ``format_html()`` without passing args or kwargs will be
+ removed.
+
.. _deprecation-removed-in-5.1:
5.1
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index e37e59ddf2..acbe5d51a6 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -651,6 +651,11 @@ escaping HTML.
through :func:`conditional_escape` which (ultimately) calls
:func:`~django.utils.encoding.force_str` on the values.
+ .. deprecated:: 5.0
+
+ Support for calling ``format_html()`` without passing args or kwargs is
+ deprecated.
+
.. function:: format_html_join(sep, format_string, args_generator)
A wrapper of :func:`format_html`, for the common case of a group of
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt
index 38b49986c5..98bd5d2a9f 100644
--- a/docs/releases/5.0.txt
+++ b/docs/releases/5.0.txt
@@ -454,6 +454,9 @@ Miscellaneous
* The default scheme for ``forms.URLField`` will change from ``"http"`` to
``"https"`` in Django 6.0.
+* Support for calling ``format_html()`` without passing args or kwargs will be
+ removed.
+
Features removed in 5.0
=======================