diff options
| author | Tim Graham <timograham@gmail.com> | 2018-11-28 13:57:30 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-28 15:12:31 -0500 |
| commit | a9d9680ea344a243f6e3ed7d0ad8031172458b9a (patch) | |
| tree | 12fe7630ebd0ba7416b05df2d78d2fc5aa0f4bb4 | |
| parent | 7e9d5a0aca23427d431a6628b0593c26d087658f (diff) | |
[2.1.x] Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regarding when they're populated.
Backport of 682cdf6cab8cb76ef1808df45631c39748052e13 from master.
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index ffc0ecca73..bd5547449f 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1067,9 +1067,9 @@ subclass:: 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 - an object's URL to change if the slug is used in it). + Prepopulated fields aren't modified by JavaScript after a value has been + saved. It's usually undesired that slugs change (which would cause an + object's URL to change if the slug is used in it). ``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``, ``OneToOneField``, and ``ManyToManyField`` fields. |
