Opened 5 years ago

Last modified 4 days ago

#29111 assigned New feature

Use autocomplete_fields in list_filter for related models

Reported by: Paul Tiplady Owned by: Gav O'Connor
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Christophe Baldy Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In Django 2.0, support for select2 AJAX autocomplete fields was added:

This makes foreign key fields much more usable in the Admin, as the full list of objects doesn't need to be loaded to populate a dropdown list (as was the old way of doing this).

This issue covers using the new vendored select2 widgets to provide similar autocomplete functionality for the list_filter UI (specifically, presumably extending/replacing RelatedFieldListFilter).

Some discussion in the Github PR 6385 suggesting that the next step would be to open an issue to track this work.

Change History (4)

comment:1 Changed 5 years ago by Tim Graham

Component: Uncategorizedcontrib.admin
Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by Christophe Baldy

Cc: Christophe Baldy added

comment:3 Changed 3 years ago by Phil Krylov

There is a third-party app dealing with this, although it could be improved a bit:

comment:4 Changed 4 days ago by Gav O'Connor

Owner: changed from nobody to Gav O'Connor
Status: newassigned
Version: 2.0dev
Note: See TracTickets for help on using tickets.
Back to Top