Fixed #15968 - Noted that readonly_fields are excluded from the ModelForm
This commit is contained in:
parent
620e0bba49
commit
a386675a6a
|
@ -816,9 +816,11 @@ subclass::
|
||||||
|
|
||||||
By default the admin shows all fields as editable. Any fields in this
|
By default the admin shows all fields as editable. Any fields in this
|
||||||
option (which should be a ``list`` or ``tuple``) will display its data
|
option (which should be a ``list`` or ``tuple``) will display its data
|
||||||
as-is and non-editable. Note that when specifying :attr:`ModelAdmin.fields`
|
as-is and non-editable; they are also excluded from the
|
||||||
or :attr:`ModelAdmin.fieldsets` the read-only fields must be present to be
|
:class:`~django.forms.ModelForm` used for creating and editing. Note that
|
||||||
shown (they are ignored otherwise).
|
when specifying :attr:`ModelAdmin.fields` or :attr:`ModelAdmin.fieldsets`
|
||||||
|
the read-only fields must be present to be shown (they are ignored
|
||||||
|
otherwise).
|
||||||
|
|
||||||
If ``readonly_fields`` is used without defining explicit ordering through
|
If ``readonly_fields`` is used without defining explicit ordering through
|
||||||
:attr:`ModelAdmin.fields` or :attr:`ModelAdmin.fieldsets` they will be
|
:attr:`ModelAdmin.fields` or :attr:`ModelAdmin.fieldsets` they will be
|
||||||
|
|
Loading…
Reference in New Issue