Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #15968 - Noted that readonly_fields are excluded from the Model…

…Form
  • Loading branch information...
commit a386675a6a636b8e6b96277da8e9191e9dc710dc 1 parent 620e0bb
@timgraham timgraham authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 docs/ref/contrib/admin/index.txt
View
8 docs/ref/contrib/admin/index.txt
@@ -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

0 comments on commit a386675

Please sign in to comment.
Something went wrong with that request. Please try again.