Opened 11 months ago

Last modified 7 months ago

#27471 assigned New feature

Make admin's list_filter choices collapsable

Reported by: Greg McCoy Owned by: Shiv K Sah
Component: contrib.admin Version: 1.10
Severity: Normal Keywords: filter admin collaspe
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

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?

Attachments (1)

screenshot.png (13.5 KB) - added by Greg McCoy 11 months ago.

Download all attachments as: .zip

Change History (4)

Changed 11 months ago by Greg McCoy

Attachment: screenshot.png added

comment:1 Changed 11 months ago by Tim Graham

Has patch: unset
Summary: Collaspable filters in AdminMake admin's list_filter choices collapsable
Triage Stage: UnreviewedAccepted

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.

comment:2 Changed 10 months ago by Tim Graham

Has patch: set
Needs documentation: set
Needs tests: set

PR (without tests or documentation updates -- some screenshots need to be updated, for example).

comment:3 Changed 7 months ago by Shiv K Sah

Owner: changed from nobody to Shiv K Sah
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top