1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00

Refs #35648 -- Corrected release notes for SafeString.__add__() changes.

This commit is contained in:
Mariusz Felisiak 2024-08-12 20:56:00 +02:00 committed by GitHub
parent ca47884410
commit 6f0a4c1f3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,8 +262,8 @@ URLs
Utilities Utilities
~~~~~~~~~ ~~~~~~~~~
* :class:`~django.utils.safestring.SafeString` now raises * :class:`~django.utils.safestring.SafeString` now returns
:exc:`NotImplementedError` in ``__add__`` for non-string right-hand side :py:data:`NotImplemented` in ``__add__`` for non-string right-hand side
values. This aligns with the :py:class:`str` addition behavior and allows values. This aligns with the :py:class:`str` addition behavior and allows
``__radd__`` to be used if available. ``__radd__`` to be used if available.