summaryrefslogtreecommitdiff
path: root/docs/ref/forms/api.txt
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:39:10 +0100
commit738e0601d597d4b6bee0000f645994495af984d8 (patch)
tree030a34088f52749a0f8312fdd96faaf1a82d2f0f /docs/ref/forms/api.txt
parent555f2412cba4c5844408042e92f3bf9fa5c2392c (diff)
Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs.
Diffstat (limited to 'docs/ref/forms/api.txt')
-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 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("</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