summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-11-28 13:57:30 -0500
committerTim Graham <timograham@gmail.com>2018-11-28 14:48:03 -0500
commit682cdf6cab8cb76ef1808df45631c39748052e13 (patch)
tree11d95fa81a32212ce4385d5093ec2cffda6f77ea /docs
parentdcd1025f4c03faa4a9915a1d47d07008280dd3cf (diff)
Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regarding when they're populated.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index c28453006c..7a14d694a6 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1067,9 +1067,9 @@ subclass::
slug (e.g. substituting dashes for spaces; lowercasing ASCII letters; and
removing various English stop words such as 'a', 'an', 'as', and similar).
- Fields are prepopulated on add forms but not on change forms. It's usually
- undesired that slugs change after an object is created (which would cause
- an object's URL to change if the slug is used in it).
+ Prepopulated fields aren't modified by JavaScript after a value has been
+ saved. It's usually undesired that slugs change (which would cause an
+ object's URL to change if the slug is used in it).
``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``,
``OneToOneField``, and ``ManyToManyField`` fields.