From 6fe9c45b725cd21eacbb50263bd3449e1a3edf17 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 27 Dec 2018 11:19:55 -0500 Subject: Fixed #30024 -- Made urlencode() and Client raise TypeError when None is passed as data. --- docs/releases/2.2.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') 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 -- cgit v1.3