From 682cdf6cab8cb76ef1808df45631c39748052e13 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 28 Nov 2018 13:57:30 -0500 Subject: [PATCH] Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regarding when they're populated. --- docs/ref/contrib/admin/index.txt | 6 +++--- 1 file 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.