Skip to content

Commit

Permalink
Refs #28205 -- Corrected ModelAdmin.prepopulated_fields docs regardin…
Browse files Browse the repository at this point in the history
…g when they're populated.
  • Loading branch information
timgraham committed Nov 28, 2018
1 parent dcd1025 commit 682cdf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/contrib/admin/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 682cdf6

Please sign in to comment.