mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #23919 -- Removed usage of obsolete SafeBytes class
The class will be removed as part of #27753. Thanks Tim Graham for the review.
This commit is contained in:
@@ -205,6 +205,16 @@ Validators
|
||||
Backwards incompatible changes in 2.0
|
||||
=====================================
|
||||
|
||||
Removed support for bytestrings in some places
|
||||
----------------------------------------------
|
||||
|
||||
To support native Python 2 strings, older Django versions had to accept both
|
||||
bytestrings and unicode strings. Now that Python 2 support is dropped,
|
||||
bytestrings should only be encountered around input/output boundaries (handling
|
||||
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.
|
||||
|
||||
Database backend API
|
||||
--------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user