Skip to content

Commit

Permalink
Fixed django#15968 - Noted that readonly_fields are excluded from the…
Browse files Browse the repository at this point in the history
… ModelForm
  • Loading branch information
timgraham committed Nov 7, 2012
1 parent 620e0bb commit a386675
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/ref/contrib/admin/index.txt
Expand Up @@ -816,9 +816,11 @@ subclass::

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
as-is and non-editable. Note that when specifying :attr:`ModelAdmin.fields`
or :attr:`ModelAdmin.fieldsets` the read-only fields must be present to be
shown (they are ignored otherwise).
as-is and non-editable; they are also excluded from the
:class:`~django.forms.ModelForm` used for creating and editing. Note that
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
:attr:`ModelAdmin.fields` or :attr:`ModelAdmin.fieldsets` they will be
Expand Down

0 comments on commit a386675

Please sign in to comment.