mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs.
This commit is contained in:
committed by
Ryan Cheley
parent
da5b710c56
commit
d8e3c73ec2
@@ -406,8 +406,8 @@ process:
|
|||||||
.. code-block:: pycon
|
.. code-block:: pycon
|
||||||
|
|
||||||
>>> f.base_fields["subject"].label_suffix = "?"
|
>>> f.base_fields["subject"].label_suffix = "?"
|
||||||
>>> another_f = CommentForm(auto_id=False)
|
>>> another_f = ContactForm(auto_id=False)
|
||||||
>>> f.as_div().split("</div>")[0]
|
>>> 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">'
|
'<div><label for="id_subject">Subject?</label><input type="text" name="subject" maxlength="100" required id="id_subject">'
|
||||||
|
|
||||||
Accessing "clean" data
|
Accessing "clean" data
|
||||||
|
|||||||
Reference in New Issue
Block a user