Opened 12 months ago

Last modified 9 months ago

#27888 assigned Cleanup/optimization

Add a button to clear all admin filters

Reported by: David Herring Owned by: Md. Al-Amin
Component: contrib.admin Version: 1.10
Severity: Normal Keywords:
Cc: cmawebsite@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no


When in Django admin, it would be useful to be able to remove all filters and search criteria set in one click.

Change History (6)

comment:1 Changed 12 months ago by Tim Graham

Component: Uncategorizedcontrib.admin
Summary: Option to clear all filters at top of filter listAdd a button to clear all admin filters
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Seems okay as long as it's simple and tasteful. It might involve clearing the query string. I think the functionality is already provided when search is enabled. To the right right of the search box, something like "N results (X total)" is displayed. If you click "X total", the query string is removed and all results are displayed.

Last edited 12 months ago by Tim Graham (previous) (diff)

comment:2 Changed 12 months ago by Md. Al-Amin

Owner: changed from nobody to Md. Al-Amin
Status: newassigned

I am going to work on this ticket.

comment:4 Changed 11 months ago by Collin Anderson

Cc: cmawebsite@… added
Patch needs improvement: set

The button is hidden behind the filter box for me. My browser width is around 1100px.

comment:5 Changed 11 months ago by Md. Al-Amin

Patch needs improvement: unset

Thanks for the report. I have fixed the styling issue and updated the pull request.

comment:6 Changed 9 months ago by Tim Graham

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top