Autocomplete fields in Django Admin
autocomplete_fields is a list of
ManyToManyField fields you would like to change to autocomplete inputs.
By default, the admin uses a select-box interface (
<select>) for those fields. Sometimes you don’t want to incur the overhead of selecting all the related instances to display in the dropdown.
In the following example,
ChoiceAdmin has an autocomplete field for the
ForeignKey to the
Question. The results are filtered by the
question_text field and ordered by the