Fixed incorrect doc reference to Field.initial.

This commit is contained in:
Jon Dufresne 2016-08-17 07:27:33 -07:00 committed by Tim Graham
parent 19e20a2a3f
commit 4773ed2e31
1 changed files with 2 additions and 2 deletions

View File

@ -231,8 +231,8 @@ it's not necessary to include every field in your form. For example::
These values are only displayed for unbound forms, and they're not used as These values are only displayed for unbound forms, and they're not used as
fallback values if a particular value isn't provided. fallback values if a particular value isn't provided.
Note that if a :class:`~django.forms.Field` defines :attr:`~Form.initial` *and* If a :class:`~django.forms.Field` defines :attr:`~Field.initial` *and* you
you include ``initial`` when instantiating the ``Form``, then the latter include :attr:`~Form.initial` when instantiating the ``Form``, then the latter
``initial`` will have precedence. In this example, ``initial`` is provided both ``initial`` will have precedence. In this example, ``initial`` is provided both
at the field level and at the form instance level, and the latter gets at the field level and at the form instance level, and the latter gets
precedence:: precedence::