summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-11-06 06:58:25 -0500
committerTim Graham <timograham@gmail.com>2012-11-06 19:03:44 -0500
commita386675a6a636b8e6b96277da8e9191e9dc710dc (patch)
tree13e78f30416d201f8b059a7f4f2141fff0bcde20 /docs
parent620e0bba4969f27230d35f75bc6a1624c3fac747 (diff)
Fixed #15968 - Noted that readonly_fields are excluded from the ModelForm
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index ee1342b43d..29ee66bccc 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/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