mirror of https://github.com/django/django.git
[2.0.x] Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words.
Backport of 9e86185936
from master
This commit is contained in:
parent
482ba9246e
commit
02114f9c49
|
@ -1046,7 +1046,8 @@ subclass::
|
||||||
automatically generate the value for ``SlugField`` fields from one or more
|
automatically generate the value for ``SlugField`` fields from one or more
|
||||||
other fields. The generated value is produced by concatenating the values
|
other fields. The generated value is produced by concatenating the values
|
||||||
of the source fields, and then by transforming that result into a valid
|
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
|
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
|
undesired that slugs change after an object is created (which would cause
|
||||||
|
|
Loading…
Reference in New Issue