Kaydet (Commit) 682cdf6c authored tarafından Tim Graham's avatar Tim Graham

Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regarding when they're populated.

üst dcd1025f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment