diff options
| author | Scott Cranfill <scott.cranfill@cfpb.gov> | 2020-05-20 13:11:30 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-27 12:32:56 +0200 |
| commit | 62f1655a64795d055f72e53557fb8404c5430963 (patch) | |
| tree | 5238b3662f872afa25b70279359f9caf744b8b8f /docs | |
| parent | 922ff51f5ac34205f454d7b5786cef57f32b6ca3 (diff) | |
Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields.
Co-Authored-By: Andy Chosak <andy@chosak.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 8 | ||||
| -rw-r--r-- | docs/releases/3.2.txt | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 085beb4518..b85711d510 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1096,8 +1096,7 @@ 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; lowercasing ASCII letters; and - removing various English stop words such as 'a', 'an', 'as', and similar). + slug (e.g. substituting dashes for spaces and lowercasing ASCII letters). Prepopulated fields aren't modified by JavaScript after a value has been saved. It's usually undesired that slugs change (which would cause an @@ -1106,6 +1105,11 @@ subclass:: ``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``, ``OneToOneField``, and ``ManyToManyField`` fields. + .. versionchanged:: 3.2 + + In older versions, various English stop words are removed from + generated values. + .. attribute:: ModelAdmin.preserve_filters The admin now preserves filters on the list view after creating, editing diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index bd8db085a9..1ba636c4a6 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -275,6 +275,9 @@ Miscellaneous external build tool. The minified vendored JavaScript files packaged with the admin (e.g. :ref:`jquery.min.js <contrib-admin-jquery>`) are still included. +* :attr:`.ModelAdmin.prepopulated_fields` no longer strips English stop words, + such as ``'a'`` or ``'an'``. + .. _deprecated-features-3.2: Features deprecated in 3.2 |
