diff options
| author | antoliny0919 <antoliny0919@gmail.com> | 2024-11-05 07:59:14 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-11-05 15:32:03 +0100 |
| commit | 72de38239fdc97751e1e4ed245c7073c31bbd28a (patch) | |
| tree | d783d23a4568eaec49ec124b6e105392d9e1b8d9 /docs/ref/forms/fields.txt | |
| parent | 5fa4ccab7e42e86fa4a0681d21bd1326c9c5eac3 (diff) | |
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.
Diffstat (limited to 'docs/ref/forms/fields.txt')
| -rw-r--r-- | docs/ref/forms/fields.txt | 2 |
1 files changed, 0 insertions, 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) |
