Opened 7 years ago
Last modified 6 weeks ago
#29111 new New feature
Use autocomplete_fields in list_filter for related models
Reported by: | Paul Tiplady | Owned by: | |
---|---|---|---|
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 |
Pull Requests: | How to create a pull request | ||
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.
According to the ticket's flags, the next step(s) to move this issue forward are:
- To provide a patch by sending a pull request. Claim the ticket when you start working so that someone else doesn't duplicate effort. Before sending a pull request, review your work against the patch review checklist. Check the "Has patch" flag on the ticket after sending a pull request and include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (7)
comment:1 by , 7 years ago
Component: | Uncategorized → contrib.admin |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 6 years ago
Cc: | added |
---|
comment:3 by , 6 years ago
comment:4 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Version: | 2.0 → dev |
comment:5 by , 10 months ago
Owner: | changed from | to
---|
comment:6 by , 6 weeks ago
There is an updated third party app which does this https://github.com/vigo/django-admin-list-filter
comment:7 by , 6 weeks ago
Owner: | removed |
---|---|
Status: | assigned → new |
There is a third-party app dealing with this, although it could be improved a bit: https://github.com/farhan0581/django-admin-autocomplete-filter