diff --git a/docs/admin.txt b/docs/admin.txt index e63131c7b9..996930fc2b 100644 --- a/docs/admin.txt +++ b/docs/admin.txt @@ -146,6 +146,20 @@ The ``field_options`` dictionary can have the following keys: under the heading of the fieldset. It's used verbatim, so you can use any HTML and you must escape any special HTML characters (such as ampersands) yourself. +``filter_horizontal`` +~~~~~~~~~~~~~~~~~~~~~ + +Use a nifty unobtrusive Javascript "filter" interface instead of the +usability-challenged ``) for +fields that are ``ForeignKey``. Sometimes you don't want to incur the +overhead of having to select all the related instances to display in the +drop-down. + +``raw_id_fields`` is a list of fields you would like to change +into a ``Input`` widget for the primary key. + ``save_as`` ~~~~~~~~~~~ diff --git a/docs/model-api.txt b/docs/model-api.txt index 2c497b30c2..d459b8638b 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -423,18 +423,6 @@ not specified, Django will use a default length of 50. Implies ``db_index=True``. -Accepts an extra option, ``prepopulate_from``, which is a list of fields -from which to auto-populate the slug, via JavaScript, in the object's admin -form:: - - models.SlugField(prepopulate_from=("pre_name", "name")) - -``prepopulate_from`` doesn't accept DateTimeFields, ForeignKeys nor -ManyToManyFields. - -The admin represents ``SlugField`` as an ```` (a -single-line input). - ``SmallIntegerField`` ~~~~~~~~~~~~~~~~~~~~~