diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-27 11:19:55 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-12-27 11:19:55 -0500 |
| commit | 6fe9c45b725cd21eacbb50263bd3449e1a3edf17 (patch) | |
| tree | 76c94d830c0c1e17d1d7580743908eb0aacc134e /docs/releases/2.2.txt | |
| parent | 293db9eb36e42e8ba976c2639800020d04b95deb (diff) | |
Fixed #30024 -- Made urlencode() and Client raise TypeError when None is passed as data.
Diffstat (limited to 'docs/releases/2.2.txt')
| -rw-r--r-- | docs/releases/2.2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index f731562640..3201d00047 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -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 |
