diff --git a/docs/admin.txt b/docs/admin.txt index 33e9ede4c2..2894b1d57c 100644 --- a/docs/admin.txt +++ b/docs/admin.txt @@ -421,7 +421,10 @@ 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. +into a ``Input`` widget for either a ``ForeignKey`` or ``ManyToManyField``:: + + class ArticleAdmin(admin.ModelAdmin): + raw_id_fields = ("newspaper",) ``save_as`` ~~~~~~~~~~~ @@ -598,6 +601,21 @@ enough. See `max_num in formsets`_ for more information. .. _max_num in formsets: ../modelforms/#limiting-the-number-of-objects-editable +``raw_id_fields`` +~~~~~~~~~~~~~~~~~ + +By default, Django's admin uses a select-box interface (