From 738e0601d597d4b6bee0000f645994495af984d8 Mon Sep 17 00:00:00 2001 From: antoliny0919 Date: Tue, 29 Oct 2024 08:44:37 +0900 Subject: [PATCH] Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs. --- docs/ref/forms/api.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 33d0806859..8abe273a59 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -406,8 +406,8 @@ process: .. code-block:: pycon >>> f.base_fields["subject"].label_suffix = "?" - >>> another_f = CommentForm(auto_id=False) - >>> f.as_div().split("")[0] + >>> another_f = ContactForm(auto_id=False) + >>> another_f.as_div().split("")[0] '
' Accessing "clean" data