From a0ea554d24406011474af6be6183807c94d20896 Mon Sep 17 00:00:00 2001 From: antoliny0919 Date: Tue, 29 Oct 2024 08:44:37 +0900 Subject: [PATCH] [5.1.x] Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs. Backport of 738e0601d597d4b6bee0000f645994495af984d8 from main. --- 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 28cd452c4e..15fc52f9b9 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