summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-11-15 18:14:53 -0500
committerTim Graham <timograham@gmail.com>2017-11-16 09:29:50 -0500
commit0f7b5b38b603e06d6e3c8bdeecd096ad7f305af6 (patch)
treecdcb9cf54ba4b8047e27e096d7d82ae555dfd669 /docs
parent498b5db6fef990e8031adf066eb803c72f9e80f5 (diff)
[2.0.x] Fixed #28796 -- Doc'd backwards incompatibility when reverse() receives bytestring args/kwargs.
Due to 301de774c21d055e9e5a7073e5bffdb52bc71079. Backport of 6bf85ff7e3b837378589e449ba27be8971d9b14c from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/2.0.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt
index 18d170aa1b..904597a033 100644
--- a/docs/releases/2.0.txt
+++ b/docs/releases/2.0.txt
@@ -349,6 +349,12 @@ of binary fields or HTTP streams, for example). You might have to update your
code to limit bytestring usage to a minimum, as Django no longer accepts
bytestrings in certain code paths.
+For example, ``reverse()`` now uses ``str()`` instead of ``force_text()`` to
+coerce the ``args`` and ``kwargs`` it receives, prior to their placement in
+the URL. For bytestrings, this creates a string with an undesired ``b`` prefix
+as well as additional quotes (``str(b'foo')`` is ``"b'foo'"``). To adapt, call
+``decode()`` on the bytestring before passing it to ``reverse()``.
+
Database backend API
--------------------