summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2024-10-29 08:44:37 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-29 08:40:59 +0100
commita0ea554d24406011474af6be6183807c94d20896 (patch)
tree330734eb82c04105d23907862236315e51fcedc6 /docs
parente8e503551100af5c29d253870233dee838dbafa3 (diff)
[5.1.x] Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs.
Backport of 738e0601d597d4b6bee0000f645994495af984d8 from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/forms/api.txt4
1 files 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("</div>")[0]
+ >>> another_f = ContactForm(auto_id=False)
+ >>> another_f.as_div().split("</div>")[0]
'<div><label for="id_subject">Subject?</label><input type="text" name="subject" maxlength="100" required id="id_subject">'
Accessing "clean" data