From 72de38239fdc97751e1e4ed245c7073c31bbd28a Mon Sep 17 00:00:00 2001 From: antoliny0919 Date: Tue, 5 Nov 2024 07:59:14 +0900 Subject: [PATCH] Fixed #35880 -- Removed invalid example in form Field.required docs due to CharField.strip. CharField.strip was introduced in 11cac1bd8ef7546ca32d9969d4348bf412dc6664, and is True by default, meaning the previous example of " " raised a ValidationError. --- docs/ref/forms/fields.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 3871e3e8e1..6051122617 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -65,8 +65,6 @@ an empty value -- either ``None`` or the empty string (``""``) -- then Traceback (most recent call last): ... ValidationError: ['This field is required.'] - >>> f.clean(" ") - ' ' >>> f.clean(0) '0' >>> f.clean(True)