summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Hogan <khogan974@gmail.com>2018-04-28 19:14:09 -0400
committerTim Graham <timograham@gmail.com>2018-05-02 13:15:39 -0400
commit9e861859366bfe60b584b7737a706031eed4c0aa (patch)
treef02c5fe8e5dd37fa725e978d2aea17da78b2b417
parent4660ce5a6930e07899ed083801845ee4c44c09df (diff)
downloaddjango-9e861859366bfe60b584b7737a706031eed4c0aa.tar.gz
Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words.
-rw-r--r--docs/ref/contrib/admin/index.txt3
1 files changed, 2 insertions, 1 deletions
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