From 9e861859366bfe60b584b7737a706031eed4c0aa Mon Sep 17 00:00:00 2001 From: Kelly Hogan Date: Sat, 28 Apr 2018 19:14:09 -0400 Subject: [PATCH] Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words. --- docs/ref/contrib/admin/index.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 11291c3992..29bd436fe0 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1068,7 +1068,8 @@ subclass:: automatically generate the value for ``SlugField`` fields from one or more other fields. The generated value is produced by concatenating the values of the source fields, and then by transforming that result into a valid - slug (e.g. substituting dashes for spaces). + 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