[Django] #27471: Collaspable filters in Admin

12 views
Skip to first unread message

Django

unread,
Nov 10, 2016, 10:14:47 AM11/10/16
to django-...@googlegroups.com
#27471: Collaspable filters in Admin
-------------------------------------+-------------------------------------
Reporter: Greg | Owner: nobody
McCoy |
Type: New | Status: new
feature |
Component: | Version: 1.10
contrib.admin | Keywords: filter admin
Severity: Normal | collaspe
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
I made a change to my site to add a toggle collapse on the filters in the
admin page. Is this something we'd like in Django by default?

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

Django

unread,
Nov 10, 2016, 10:15:04 AM11/10/16
to django-...@googlegroups.com
#27471: Collaspable filters in Admin
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage:
collaspe | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Greg McCoy):

* Attachment "screenshot.png" added.

Django

unread,
Nov 10, 2016, 10:43:13 AM11/10/16
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable

-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 0 | Needs documentation: 0

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

* has_patch: 1 => 0
* stage: Unreviewed => Accepted


Comment:

Sure, it was proposed in
wiki:DjangoDesign#Collapsefiltersinchangelistsidebar:

Filter options take of a lot of vertical space in the changelist
sidebar. This makes it difficult to use fields with lots of options as
filters, or to use more than a few fields as filters. This could be solved
by adding an option to display filters with more than a specified number
of options as a select element instead of in a list. (WM)

#21183 is a related ticket about collapsing the entire sidebar.

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

Django

unread,
Nov 23, 2016, 9:25:31 AM11/23/16
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* needs_docs: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1


Comment:

[https://github.com/django/django/pull/7538 PR] (without tests or
documentation updates -- some screenshots need to be updated, for
example).

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

Django

unread,
Feb 19, 2017, 2:00:10 AM2/19/17
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Shiv K
| Sah
Type: New feature | Status: assigned

Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Shiv K Sah):

* owner: nobody => Shiv K Sah
* status: new => assigned


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

Django

unread,
Oct 8, 2021, 6:36:57 AM10/8/21
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: (none)

Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* owner: Shiv K Sah => (none)
* status: assigned => new


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

Django

unread,
Dec 3, 2021, 7:24:46 AM12/3/21
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Carlton Gibson (added)


Comment:

Related to the #21183 which is about toggling specific filters, not the
entire filter block. I'm not sure we need both 🤔.

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

Django

unread,
Jan 17, 2022, 10:55:19 PM1/17/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana

Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 0 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* owner: (none) => Marcelo Galigniana


* status: new => assigned

* has_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:6>

Django

unread,
Jan 18, 2022, 11:16:28 PM1/18/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 1

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* has_patch: 0 => 1
* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:7>

Django

unread,
Jan 19, 2022, 2:22:13 AM1/19/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* needs_better_patch: 0 => 1
* needs_docs: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:8>

Django

unread,
Jan 19, 2022, 3:19:58 PM1/19/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:9>

Django

unread,
Jan 20, 2022, 12:28:04 AM1/20/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:10>

Django

unread,
Feb 13, 2022, 10:13:57 PM2/13/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* needs_better_patch: 1 => 0


Comment:

Here I add the 2nd approach [https://github.com/django/django/pull/15424
PR] using [https://developer.mozilla.org/en-
US/docs/Web/HTML/Element/summary summary/details elements]

--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:11>

Django

unread,
Feb 16, 2022, 5:42:36 AM2/16/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:12>

Django

unread,
Apr 15, 2022, 8:57:36 PM4/15/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0

-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* needs_better_patch: 1 => 0

* ui_ux: 1 => 0


Comment:

The disclosure element was re-styled and persistence logic too!

--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:13>

Django

unread,
Apr 22, 2022, 5:17:09 AM4/22/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Accepted
collaspe |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:14>

Django

unread,
Apr 25, 2022, 4:11:30 AM4/25/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: filter admin | Triage Stage: Ready for
collaspe | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:15>

Django

unread,
Apr 26, 2022, 5:21:13 AM4/26/22
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: closed
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution: fixed

Keywords: filter admin | Triage Stage: Ready for
collaspe | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"27aa7035f57f0db30b6632e4274e18b430906799" 27aa7035]:
{{{
#!CommitTicketReference repository=""
revision="27aa7035f57f0db30b6632e4274e18b430906799"
Fixed #27471 -- Made admin's filter choices collapsable.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:16>

Django

unread,
Jul 17, 2023, 2:26:46 PM7/17/23
to django-...@googlegroups.com
#27471: Make admin's list_filter choices collapsable
-------------------------------------+-------------------------------------
Reporter: Greg McCoy | Owner: Marcelo
| Galigniana
Type: New feature | Status: closed
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: filter admin | Triage Stage: Ready for
collaspe | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"4a72da71001f154ea60906a2f74898d32b7322a7" 4a72da71]:
{{{
#!CommitTicketReference repository=""
revision="4a72da71001f154ea60906a2f74898d32b7322a7"
Refs #27471 -- Made admin's filter choice arrows use cursor pointers.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27471#comment:17>

Reply all
Reply to author
Forward
0 new messages