Skip to content

Commit

Permalink
Made minor edits to form fields docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoliny0919 authored and sarahboyce committed Nov 4, 2024
1 parent f223729 commit 4fcbdb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/forms/fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ validation may not be correct when adding and deleting formsets.
The ``label`` argument lets you specify the "human-friendly" label for this
field. This is used when the ``Field`` is displayed in a ``Form``.

As explained in "Outputting forms as HTML" above, the default label for a
As explained in :ref:`ref-forms-api-outputting-html`, the default label for a
``Field`` is generated from the field name by converting all underscores to
spaces and upper-casing the first letter. Specify ``label`` if that default
behavior doesn't result in an adequate label.
Expand Down Expand Up @@ -226,7 +226,7 @@ validation if a particular field's value is not given. ``initial`` values are
>>> f = CommentForm(data)
>>> f.is_valid()
False
# The form does *not* fall back to using the initial values.
# The form does *not* fallback to using the initial values.
>>> f.errors
{'url': ['This field is required.'], 'name': ['This field is required.']}

Expand Down Expand Up @@ -375,7 +375,7 @@ See the :doc:`validators documentation </ref/validators>` for more information.
The ``localize`` argument enables the localization of form data input, as well
as the rendered output.

See the :doc:`format localization </topics/i18n/formatting>` documentation for
See the :doc:`format localization documentation </topics/i18n/formatting>` for
more information.

``disabled``
Expand Down

0 comments on commit 4fcbdb1

Please sign in to comment.