summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Kestenholz <mk@feinheit.ch>2024-08-09 17:18:42 +0200
committernessita <124304+nessita@users.noreply.github.com>2024-08-12 14:25:05 -0300
commitd84200e4eb4d20116080130c612ba157a4718977 (patch)
tree34f59ee7d1860b2ccbd83ef913f0ca2fe449f076 /docs
parentb5c048f5ecbf1c718102f19c3018b1fb62d66b3d (diff)
Fixed #35648 -- Raised NotImplementedError in SafeString.__add__ for non-string RHS.
This change ensures SafeString addition operations handle non-string RHS properly, allowing them to implement __radd__ for better compatibility.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.2.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt
index a15e669205..9b81117095 100644
--- a/docs/releases/5.2.txt
+++ b/docs/releases/5.2.txt
@@ -262,7 +262,10 @@ URLs
Utilities
~~~~~~~~~
-* ...
+* :class:`~django.utils.safestring.SafeString` now raises
+ :exc:`NotImplementedError` in ``__add__`` for non-string right-hand side
+ values. This aligns with the :py:class:`str` addition behavior and allows
+ ``__radd__`` to be used if available.
Validators
~~~~~~~~~~