mirror of
https://github.com/django/django.git
synced 2025-04-08 15:36:47 +00:00
[1.10.x] Fixed incorrect doc reference to Field.initial.
Backport of 4773ed2e313c67ed9d4a77d5fe24ca7ed34172cf from master
This commit is contained in:
parent
8df2da3637
commit
f6af24fe40
@ -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
|
||||
fallback values if a particular value isn't provided.
|
||||
|
||||
Note that if a :class:`~django.forms.Field` defines :attr:`~Form.initial` *and*
|
||||
you include ``initial`` when instantiating the ``Form``, then the latter
|
||||
If a :class:`~django.forms.Field` defines :attr:`~Field.initial` *and* you
|
||||
include :attr:`~Form.initial` when instantiating the ``Form``, then the latter
|
||||
``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
|
||||
precedence::
|
||||
|
Loading…
x
Reference in New Issue
Block a user