Kaydet (Commit) 56b364ba authored tarafından Botond Beres's avatar Botond Beres Kaydeden (comit) Tim Graham

Fixed #28205 -- Doc'd that ModelAdmin.prepopulated_fields only works on add forms.

üst 51d7feff
......@@ -1044,6 +1044,10 @@ subclass::
of the source fields, and then by transforming that result into a valid
slug (e.g. substituting dashes for spaces).
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`` 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