[Django] #29111: Use autocomplete_fields in list_filter for related models

27 views
Skip to first unread message

Django

unread,
Feb 3, 2018, 3:54:06 PM2/3/18
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-----------------------------------------+------------------------
Reporter: Paul Tiplady | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29111>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 3, 2018, 3:55:50 PM2/3/18
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+------------------------------------

Reporter: Paul Tiplady | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Tim Graham):

* component: Uncategorized => contrib.admin
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:1>

Django

unread,
Dec 27, 2018, 5:48:39 PM12/27/18
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+------------------------------------

Reporter: Paul Tiplady | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Christophe Baldy):

* cc: Christophe Baldy (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:2>

Django

unread,
Mar 9, 2019, 1:42:21 PM3/9/19
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+------------------------------------

Reporter: Paul Tiplady | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Phil Krylov):

There is a third-party app dealing with this, although it could be
improved a bit: https://github.com/farhan0581/django-admin-autocomplete-
filter

--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:3>

Django

unread,
Aug 6, 2022, 6:02:18 PM8/6/22
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+----------------------------------------
Reporter: Paul Tiplady | Owner: Gav O'Connor
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by Gav O'Connor):

* owner: nobody => Gav O'Connor
* status: new => assigned
* version: 2.0 => dev


--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:4>

Django

unread,
Apr 5, 2024, 5:32:55 AM4/5/24
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+----------------------------------------
Reporter: Paul Tiplady | Owner: Gav O'Connor
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Changes (by Gav O'Connor):

* owner: Gav O'Connor => Gav O'Connor

--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:5>

Django

unread,
Jan 3, 2025, 11:52:10 AM1/3/25
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+----------------------------------------
Reporter: Paul Tiplady | Owner: Gav O'Connor
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------------
Comment (by David):

There is an updated third party app which does this
https://github.com/vigo/django-admin-list-filter
--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:6>

Django

unread,
Jan 6, 2025, 8:21:50 AM1/6/25
to django-...@googlegroups.com
#29111: Use autocomplete_fields in list_filter for related models
-------------------------------+------------------------------------
Reporter: Paul Tiplady | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Gav O'Connor):

* owner: Gav O'Connor => (none)
* status: assigned => new

--
Ticket URL: <https://code.djangoproject.com/ticket/29111#comment:7>
Reply all
Reply to author
Forward
0 new messages