Opened 6 months ago

Last modified 6 months ago

#29111 new New feature

Use autocomplete_fields in list_filter for related models

Reported by: Paul Tiplady Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

https://github.com/django/django/pull/6385
https://code.djangoproject.com/ticket/14370

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 (1)

comment:1 Changed 6 months ago by Tim Graham

Component: Uncategorizedcontrib.admin
Triage Stage: UnreviewedAccepted
Note: See TracTickets for help on using tickets.
Back to Top