diff options
| author | Kelly Hogan <khogan974@gmail.com> | 2018-04-28 19:14:09 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-05-02 21:32:39 -0400 |
| commit | 02114f9c49a1cad3f7fe86fe36fcda18632ffb7e (patch) | |
| tree | 075fff60791a2ef3bb06407f65242fc54bc273c9 | |
| parent | 482ba9246e1838378a7e320c247fa7338ca49b40 (diff) | |
[2.0.x] Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words.
Backport of 9e861859366bfe60b584b7737a706031eed4c0aa from master
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 63dd9938be..0cea139739 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1046,7 +1046,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 |
