mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30024 -- Made urlencode() and Client raise TypeError when None is passed as data.
This commit is contained in:
@@ -457,6 +457,11 @@ Miscellaneous
|
||||
* Tests that violate deferrable database constraints now error when run on
|
||||
SQLite 3.20+, just like on other backends that support such constraints.
|
||||
|
||||
* To catch usage mistakes, the test :class:`~django.test.Client` and
|
||||
:func:`django.utils.http.urlencode` now raise ``TypeError`` if ``None`` is
|
||||
passed as a value to encode because ``None`` can't be encoded in GET and POST
|
||||
data. Either pass an empty string or omit the value.
|
||||
|
||||
.. _deprecated-features-2.2:
|
||||
|
||||
Features deprecated in 2.2
|
||||
|
||||
Reference in New Issue
Block a user